From 4a801241b305039edc6aa2945b27009eb658ddee Mon Sep 17 00:00:00 2001 From: Andrei Dekterev Date: Sat, 1 Oct 2022 20:56:22 +0600 Subject: [PATCH] fix(#2845): add has_video and storage condition for fullmatchduration --- src/features/MatchPage/components/LiveMatch/hooks/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/MatchPage/components/LiveMatch/hooks/index.tsx b/src/features/MatchPage/components/LiveMatch/hooks/index.tsx index 82f31bba..df9766c4 100644 --- a/src/features/MatchPage/components/LiveMatch/hooks/index.tsx +++ b/src/features/MatchPage/components/LiveMatch/hooks/index.tsx @@ -48,7 +48,7 @@ export const useLiveMatch = () => { } = usePlayerProgressReporter() const onDurationChange = (duration: number) => { - if (profile?.live || profile?.video_bounds) return + if (profile?.live && (!profile?.has_video || profile?.storage)) return setFullMatchPlaylistDuration(duration) }