fix(#2845): add has_video and storage condition for fullmatchduration

keep-around/2fd168b18eeebc91eac94ae86d817c12edfe1576
Andrei Dekterev 3 years ago
parent e01ae0c418
commit 4a801241b3
  1. 2
      src/features/MatchPage/components/LiveMatch/hooks/index.tsx

@ -48,7 +48,7 @@ export const useLiveMatch = () => {
} = usePlayerProgressReporter() } = usePlayerProgressReporter()
const onDurationChange = (duration: number) => { const onDurationChange = (duration: number) => {
if (profile?.live || profile?.video_bounds) return if (profile?.live && (!profile?.has_video || profile?.storage)) return
setFullMatchPlaylistDuration(duration) setFullMatchPlaylistDuration(duration)
} }

Loading…
Cancel
Save