diff --git a/src/components/navigation.js b/src/components/navigation.js index 2c7743c..1cb3846 100644 --- a/src/components/navigation.js +++ b/src/components/navigation.js @@ -10,14 +10,12 @@ import { X } from "lucide-react"; import { Fade as Hamburger } from "hamburger-react"; const OffScreenNav = ({ active, close }) => { - if (typeof window === "undefined") { - return null; - } + if (typeof document === "undefined") return <>>; return createPortal(