We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3d2b60 commit c9125a8Copy full SHA for c9125a8
src/utils/useFAQAccordion.ts
@@ -83,5 +83,5 @@ export const useFAQAccordion = () => {
83
document.addEventListener("click", toggleClasses)
84
85
return () => document.removeEventListener("click", toggleClasses)
86
- }, [window.location.hash])
+ }, [typeof window !== 'undefined' ? window.location.hash : null])
87
}
0 commit comments