diff --git a/src/features/MatchPage/index.tsx b/src/features/MatchPage/index.tsx index 9d3af2c2..73b13168 100644 --- a/src/features/MatchPage/index.tsx +++ b/src/features/MatchPage/index.tsx @@ -16,7 +16,8 @@ import { Wrapper } from './styled' const MatchPage = () => { usePageLogger() const profile = useMatchProfile() - const hasVideo = profile?.has_video + const playFromScout = profile?.has_video && !profile.live + const playFromOTT = !profile?.has_video && (profile?.live || profile?.storage) return ( @@ -26,8 +27,8 @@ const MatchPage = () => {
- {(!hasVideo && profile) && } - {(hasVideo && profile) && } + {playFromOTT && } + {playFromScout && }
diff --git a/src/requests/getMatchInfo.tsx b/src/requests/getMatchInfo.tsx index 8685f9a8..c6ef2d98 100644 --- a/src/requests/getMatchInfo.tsx +++ b/src/requests/getMatchInfo.tsx @@ -21,6 +21,7 @@ export type MatchInfo = { date: string, has_video: boolean, live: boolean, + storage: boolean, team1: Team, team2: Team, tournament: {