diff --git a/src/web/components/useIsMobile.ts b/src/web/components/useIsMobile.ts index 38161c3..10174dd 100644 --- a/src/web/components/useIsMobile.ts +++ b/src/web/components/useIsMobile.ts @@ -6,6 +6,7 @@ export function useIsMobile(breakpoint = 768) { )); useEffect(() => { + if (typeof window === 'undefined') return; const update = () => setIsMobile(window.innerWidth < breakpoint); update(); window.addEventListener('resize', update);