From 3ea37b6d510cce3922ea104c172125c22ba4cc59 Mon Sep 17 00:00:00 2001 From: Farber Denis Date: Thu, 25 Aug 2022 08:17:56 +0300 Subject: [PATCH] fix(#ott2714): min fix --- src/features/AuthStore/hooks/useAuth.tsx | 4 +--- src/features/JoinMatchPageRFEF/index.tsx | 7 ------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/features/AuthStore/hooks/useAuth.tsx b/src/features/AuthStore/hooks/useAuth.tsx index f9387124..6d191767 100644 --- a/src/features/AuthStore/hooks/useAuth.tsx +++ b/src/features/AuthStore/hooks/useAuth.tsx @@ -127,9 +127,7 @@ export const useAuth = () => { if (!isMatchPage() && !isMatchPageRFEF()) { login() } - // if (!isMatchPageRFEF()) { - // login() - // } + if (history.location.pathname === '/') { setSearch(history.location.search) } diff --git a/src/features/JoinMatchPageRFEF/index.tsx b/src/features/JoinMatchPageRFEF/index.tsx index 3774251f..6a97f4cd 100644 --- a/src/features/JoinMatchPageRFEF/index.tsx +++ b/src/features/JoinMatchPageRFEF/index.tsx @@ -3,10 +3,7 @@ import format from 'date-fns/format' import { joinMatchLexics } from 'config/lexics/joinMatch' -// import { usePageParams } from 'hooks/usePageParams' - import { T9n } from 'features/T9n' -// import { Name } from 'features/Name' import { useLexicsConfig, useLexicsStore } from 'features/LexicsStore' import { useUnauthenticatedMatch } from './hooks' @@ -39,11 +36,7 @@ import { export const JoinMatchPageRFEF = () => { useLexicsConfig(joinMatchLexics) - // const { sportType } = usePageParams() const { - // live, - // matchDate, - // matchInfo, onJoinClick, } = useUnauthenticatedMatch()