|
|
|
|
@ -61,6 +61,9 @@ const MatchPageComponent = () => { |
|
|
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
|
|
|
}, [profile, profileType]) |
|
|
|
|
|
|
|
|
|
const playFromScout = profile?.has_video && !profile?.live |
|
|
|
|
const playFromOTT = !profile?.has_video && (profile?.live || profile?.storage) |
|
|
|
|
|
|
|
|
|
// TODO Добавить попап 'Данный матч ещё не начался'
|
|
|
|
|
if (!isStarted && profile?.live === false) { |
|
|
|
|
const sportName = history.location.pathname.split('/')[1] |
|
|
|
|
@ -78,8 +81,8 @@ const MatchPageComponent = () => { |
|
|
|
|
<Wrapper> |
|
|
|
|
{playFromOTT && ( |
|
|
|
|
<LiveMatch |
|
|
|
|
events={events} |
|
|
|
|
profile={profile} |
|
|
|
|
// events={events}
|
|
|
|
|
// profile={profile}
|
|
|
|
|
tournamentData={tournamentData} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
@ -90,7 +93,6 @@ const MatchPageComponent = () => { |
|
|
|
|
tournamentData={tournamentData} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
<LiveMatch /> |
|
|
|
|
</Wrapper> |
|
|
|
|
</SubscriptionGuard> |
|
|
|
|
</Main> |
|
|
|
|
|