From 4d4023086479831913c33da8bdd724799d1cc1cc Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Thu, 9 Oct 2025 12:01:06 +0300 Subject: [PATCH] fix: back button mounts after first app launch --- apps/web/hooks/telegram/use-back-button.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }