From fa8401c575b10071c2cae370c55140c91e71ec7c Mon Sep 17 00:00:00 2001 From: Andrei Dekterev Date: Tue, 27 Sep 2022 19:00:37 +0400 Subject: [PATCH] Revert "fix(#2845): play video with has_video=false" This reverts commit b214ac7012ef42593bee62c207888a2593bc5a38. --- src/features/MatchPage/components/LiveMatch/helpers.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/features/MatchPage/components/LiveMatch/helpers.tsx b/src/features/MatchPage/components/LiveMatch/helpers.tsx index 7b4aefc8..d5492b1f 100644 --- a/src/features/MatchPage/components/LiveMatch/helpers.tsx +++ b/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,