Revert "fix(#2845): play video with has_video=false"

This reverts commit b214ac7012.
keep-around/2fd168b18eeebc91eac94ae86d817c12edfe1576
Andrei Dekterev 3 years ago
parent 32b8261dbe
commit fa8401c575
  1. 4
      src/features/MatchPage/components/LiveMatch/helpers.tsx

@ -23,9 +23,7 @@ const getFullMatchChapters = (
playlist: MatchPlaylistOption,
) => {
const bound = find(profile?.video_bounds, { h: FULL_MATCH_BOUNDARY })
const durationMs = profile?.has_video
? (playlist.duration ?? 0) * 1000
: (Number(bound?.e) - Number(bound?.s)) * 1000
const durationMs = (playlist.duration ?? 0) * 1000
return [
{
duration: durationMs,

Loading…
Cancel
Save