diff --git a/packages/fakeyou.com/src/components/layout/TopNav/TopNav.tsx b/packages/fakeyou.com/src/components/layout/TopNav/TopNav.tsx index eaaabbf242..4c4b036688 100644 --- a/packages/fakeyou.com/src/components/layout/TopNav/TopNav.tsx +++ b/packages/fakeyou.com/src/components/layout/TopNav/TopNav.tsx @@ -193,7 +193,6 @@ export default function TopNav({ // // { id: 4, name: "Text to Image", link: "/text-to-image" }, // ]; - const location = useLocation(); const topBarWrapper = document.getElementById("topbar-wrapper"); useEffect(() => { @@ -241,7 +240,7 @@ export default function TopNav({ return () => { window.removeEventListener("scroll", handleScroll); }; - }, [domain.titlePart, isOnLandingPage, topBarWrapper, location]); + }, [domain.titlePart, isOnLandingPage, topBarWrapper]); if (isOnBetaKeyRedeemPage) { return null;