|
|
|
@ -30,7 +30,7 @@ const MatchPage = () => { |
|
|
|
const playFromOTT = !profile?.has_video && (profile?.live || profile?.storage) |
|
|
|
const playFromOTT = !profile?.has_video && (profile?.live || profile?.storage) |
|
|
|
|
|
|
|
|
|
|
|
// TODO Добавить попап 'Данный матч ещё не начался'
|
|
|
|
// TODO Добавить попап 'Данный матч ещё не начался'
|
|
|
|
if (!isStarted && profile) { |
|
|
|
if (!isStarted && profile?.live === false) { |
|
|
|
const sportName = history.location.pathname.split('/')[1] |
|
|
|
const sportName = history.location.pathname.split('/')[1] |
|
|
|
history.push(`/${sportName}/tournaments/${profile.tournament.id}`) |
|
|
|
history.push(`/${sportName}/tournaments/${profile.tournament.id}`) |
|
|
|
} |
|
|
|
} |
|
|
|
|