diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index 2b6a77d..804fbb6 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -19,6 +19,7 @@ const Footer: React.FC = () => { const [hideNav, setHideNav] = useState(false); + console.log(asPath); useEffect(() => { // remove navbar from pages certain pages if (["/auth/signin", "/auth/signup"].includes(asPath)) { @@ -26,7 +27,7 @@ const Footer: React.FC = () => { } else { setHideNav(false); } - }, []); + }, [asPath]); return (