From 9f0c77924662e852e69d6f3a1d9403b315049bb4 Mon Sep 17 00:00:00 2001 From: andreidekterev Date: Tue, 18 Jul 2023 15:46:42 +0700 Subject: [PATCH] fix(#734): add watermark for india --- src/features/StreamPlayer/index.tsx | 6 ++++-- src/requests/getMatchInfo.tsx | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/features/StreamPlayer/index.tsx b/src/features/StreamPlayer/index.tsx index b5d1d2bc..72f67257 100644 --- a/src/features/StreamPlayer/index.tsx +++ b/src/features/StreamPlayer/index.tsx @@ -42,6 +42,8 @@ import { const tournamentsWithWatermark = { 316: 'Tunisia', 1136: 'Brasil', + 1448: 'India', + 5950: 'India', } /** * HLS плеер, применяется на лайв и завершенных матчах @@ -163,9 +165,9 @@ export const StreamPlayer = (props: Props) => { {user - && Boolean( + && (Boolean( tournamentsWithWatermark[profile?.tournament.id as keyof typeof tournamentsWithWatermark], - ) + ) || profile?.watermark) && playing && isLive && ( diff --git a/src/requests/getMatchInfo.tsx b/src/requests/getMatchInfo.tsx index 14504d6d..f6482695 100644 --- a/src/requests/getMatchInfo.tsx +++ b/src/requests/getMatchInfo.tsx @@ -68,6 +68,7 @@ export type MatchInfo = { team2: Team, tournament: MatchTournament, video_bounds?: VideoBounds, + watermark?: boolean, youtube_link?: string, } | null