fix(#fix): redirect fix

keep-around/b214ac7012ef42593bee62c207888a2593bc5a38
Farber Denis 3 years ago
parent a456195a9b
commit 1b484bafc7
  1. 3
      src/features/App/index.tsx

@ -28,6 +28,9 @@ const Main = () => {
if (!user && isMatchPage()) return <JoinMatchPage />
if (!user && isMatchPageRFEF()) return <JoinMatchPageRFEF />
if (user && isMatchPageRFEF()) {
window.location.href = 'https://instat.tv/football/tournaments/131'
}
// юзер считывается из localstorage или
// access_token токен истек и запрашивается новый
if (loadingUser || user?.expired) return null

Loading…
Cancel
Save