diff --git a/components/home/MaterialGrid.tsx b/components/home/MaterialGrid.tsx index 4c8ef44d..896b0379 100644 --- a/components/home/MaterialGrid.tsx +++ b/components/home/MaterialGrid.tsx @@ -52,7 +52,7 @@ function MaterialGridSkeleton() { const rootRef = useRef(null) useGSAP(() => { - if (typeof window.matchMedia !== 'function') return + if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') return const motion = gsap.matchMedia() motion.add('(prefers-reduced-motion: no-preference)', () => {