From 6537ca4b4907cb73abd1bbb57810c83addf8db99 Mon Sep 17 00:00:00 2001 From: nevainero Date: Fri, 18 Feb 2022 13:16:54 +0300 Subject: [PATCH] fix(ott-2270): add check on live === false at redirect to tournament page --- src/features/MatchPage/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/MatchPage/index.tsx b/src/features/MatchPage/index.tsx index 2ee3985f..1b445acf 100644 --- a/src/features/MatchPage/index.tsx +++ b/src/features/MatchPage/index.tsx @@ -30,7 +30,7 @@ const MatchPage = () => { const playFromOTT = !profile?.has_video && (profile?.live || profile?.storage) // TODO Добавить попап 'Данный матч ещё не начался' - if (!isStarted && profile) { + if (!isStarted && profile?.live === false) { const sportName = history.location.pathname.split('/')[1] history.push(`/${sportName}/tournaments/${profile.tournament.id}`) }