fix: back button mounts after first app launch

This commit is contained in:
vchikalkin 2025-10-09 12:01:06 +03:00
parent 92119baa5e
commit 4d40230864

View File

@ -34,7 +34,7 @@ export function useBackButton() {
} }
function isRootLevelPage(pathname: string) { function isRootLevelPage(pathname: string) {
if (exclude.some((path) => pathname.includes(path))) return false; if (exclude.includes(pathname)) return false;
return pathname.split('/').filter(Boolean).length === 1; return pathname.split('/').filter(Boolean).length === 1;
} }