fix(ott-2270): add check on live === false at redirect to tournament page

keep-around/6537ca4b4907cb73abd1bbb57810c83addf8db99
nevainero 4 years ago
parent a8ff5fff2c
commit 6537ca4b49
  1. 2
      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}`)
}

Loading…
Cancel
Save