fix(#155): change priority for switch player

IN-146-filter-matches
Andrei Dekterev 3 years ago
parent 9a0e5f92d2
commit bb5a4fc477
  1. 5
      src/features/MatchPage/index.tsx
  2. 1
      src/requests/getMatchInfo.tsx

@ -58,8 +58,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)
const playFromScout = profile?.has_video && !profile?.live && !profile.has_hls
const playFromOTT = (!profile?.has_video && (profile?.live || profile?.storage))
|| profile?.has_hls
// TODO Добавить попап 'Данный матч ещё не начался'
if (!isStarted && profile?.live === false) {
const sportName = history.location.pathname.split('/')[1]

@ -33,6 +33,7 @@ export type MatchInfo = {
country: TournamentType,
country_id: number,
date: string,
has_hls?: boolean,
has_video: boolean,
live: boolean,
playbackUrl?: string,

Loading…
Cancel
Save