Skip to content

Commit f434ba6

Browse files
window type
1 parent 51e860e commit f434ba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/congrats/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ function ConfirmationPage(): JSX.Element {
2121
const temporary = ptype === 7;
2222
useEffect(() => {
2323
if (state.formValues.username) {
24-
window.dataLayer = window.dataLayer || [];
25-
window.dataLayer.push({
24+
(window as any).dataLayer = (window as any).dataLayer || [];
25+
(window as any).dataLayer.push({
2626
event: "library_card_submission",
2727
nypl_location: state.formValues.homeLibraryCode, // Example: "Simply E" This is just an example. This variable actually refers to the Preferred Location Name found on the current Adobe Data Layer
2828
});

0 commit comments

Comments
 (0)