diff --git a/apps/web/hooks/telegram/use-back-button.ts b/apps/web/hooks/telegram/use-back-button.ts index a35563f..cab58c8 100644 --- a/apps/web/hooks/telegram/use-back-button.ts +++ b/apps/web/hooks/telegram/use-back-button.ts @@ -34,7 +34,7 @@ export function useBackButton() { } 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; }