|
|
|
|
@ -8,7 +8,7 @@ import { client } from 'config/clients' |
|
|
|
|
import { matomoInstance } from 'config/matomo' |
|
|
|
|
|
|
|
|
|
import { setClientTitleAndDescription } from 'helpers/setClientHeads' |
|
|
|
|
import { isMatchPage } from 'helpers/isMatchPage' |
|
|
|
|
import { isMatchPage, isMatchPageRFEF } from 'helpers/isMatchPage' |
|
|
|
|
|
|
|
|
|
import { GlobalStores } from 'features/GlobalStores' |
|
|
|
|
import { useAuthStore } from 'features/AuthStore' |
|
|
|
|
@ -25,8 +25,8 @@ setClientTitleAndDescription(client.title, client.description) |
|
|
|
|
const Main = () => { |
|
|
|
|
const { loadingUser, user } = useAuthStore() |
|
|
|
|
|
|
|
|
|
if (!user && isMatchPage() && !window.location.href.includes('1rfef')) return <JoinMatchPage /> |
|
|
|
|
if (!user && window.location.href.includes('1rfef')) return <JoinMatchPageRFEF /> |
|
|
|
|
if (!user && isMatchPage() && !isMatchPageRFEF() && !window.location.href.includes('1rfef')) return <JoinMatchPage /> |
|
|
|
|
if (!user && isMatchPageRFEF() && !isMatchPage() && window.location.href.includes('1rfef')) return <JoinMatchPageRFEF /> |
|
|
|
|
|
|
|
|
|
// юзер считывается из localstorage или
|
|
|
|
|
// access_token токен истек и запрашивается новый
|
|
|
|
|
|