diff --git a/src/features/AuthStore/hooks/useAuth.tsx b/src/features/AuthStore/hooks/useAuth.tsx index b4a4b176..1ad5dfb5 100644 --- a/src/features/AuthStore/hooks/useAuth.tsx +++ b/src/features/AuthStore/hooks/useAuth.tsx @@ -30,6 +30,7 @@ import { getUserInfo } from 'requests/getUserInfo' import { checkDevice, FailedResponse } from 'requests/checkDevice' import { getClientSettings, needCheckNewDeviсe } from '../helpers' +import { checkPage } from '../../../helpers/checkPage' export const useAuth = () => { const { changeLang, lang } = useLexicsStore() @@ -125,7 +126,7 @@ export const useAuth = () => { signinRedirectCallback() } else { checkUser().catch(() => { - if (!isMatchPage() && !isMatchPageRFEF()) { + if (!isMatchPage() && !isMatchPageRFEF() && !checkPage(PAGES.tournament)) { login() }