Skip to content

Commit c9125a8

Browse files
committed
More window-related build error fixes
1 parent e3d2b60 commit c9125a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/useFAQAccordion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,5 @@ export const useFAQAccordion = () => {
8383
document.addEventListener("click", toggleClasses)
8484

8585
return () => document.removeEventListener("click", toggleClasses)
86-
}, [window.location.hash])
86+
}, [typeof window !== 'undefined' ? window.location.hash : null])
8787
}

0 commit comments

Comments
 (0)