Introduce error on purpose

This commit is contained in:
Greg Bergé
2025-01-08 15:20:26 +01:00
parent 884ee7073f
commit 3fcbe46262
@@ -30,7 +30,7 @@ export function HeaderMobileMenu(props: Partial<React.ButtonHTMLAttributes<HTMLB
}
};
const windowRef = useRef(typeof window === 'undefined' ? null : window);
const windowRef = useRef(window);
useScrollListener(() => {
if (window.scrollY >= scrollDistance) {
setHasScrolled(true);