From 406da9732c986dce60e4916b477edf4b23d47005 Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Sun, 14 Sep 2025 21:55:14 -0400 Subject: [PATCH] Fix broken access to term and privacy pages --- src/views/components/NavBar.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/components/NavBar.jsx b/src/views/components/NavBar.jsx index 389965b..c860432 100644 --- a/src/views/components/NavBar.jsx +++ b/src/views/components/NavBar.jsx @@ -89,6 +89,7 @@ const links = [ import { SafeArea } from 'capacitor-plugin-safe-area' import Z_INDEX from '../../constants/zIndex' +const publicPages = ['/landing', '/privacy', '/terms'] const NavBar = () => { const navigate = useNavigate() const [drawerOpen, setDrawerOpen] = useState(false) @@ -126,7 +127,7 @@ const NavBar = () => { ) } // if url has /landing then remove the navbar: - if (location.pathname === '/landing') { + if (publicPages.includes(location.pathname)) { return null } if (