Fix broken access to term and privacy pages

This commit is contained in:
Mo Tarbin
2025-09-14 21:55:14 -04:00
parent 219aa06835
commit 406da9732c

View File

@@ -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 (