diff --git a/src/app/components/navbar.tsx b/src/app/components/navbar.tsx index 706020f..8c8977b 100644 --- a/src/app/components/navbar.tsx +++ b/src/app/components/navbar.tsx @@ -16,13 +16,19 @@ export default function NavBar(): JSX.Element { } function handleClick() { - setOpen(!open); + if (!windowSize.width) { + return; + } + + if (windowSize.width < 900) { + setOpen(!open); + } } return (