From 7cdfd41fe27e7f318726a3419186a4fc08ab5ce9 Mon Sep 17 00:00:00 2001 From: Andrei Dekterev Date: Wed, 1 Feb 2023 14:56:33 +0700 Subject: [PATCH] fix(#270): add watermark for tunisia league --- src/features/StreamPlayer/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/features/StreamPlayer/index.tsx b/src/features/StreamPlayer/index.tsx index 462bb16b..46a4a3e1 100644 --- a/src/features/StreamPlayer/index.tsx +++ b/src/features/StreamPlayer/index.tsx @@ -27,6 +27,12 @@ import { useAuthStore } from '../AuthStore' import { Controls } from './components/Controls' import RewindMobile from './components/RewindMobile' +const tournamentsWithWatermark = { + 131: 'Spain', + 316: 'Tunisia', + 1136: 'Brasil', + 2032: 'Spain', +} /** * HLS плеер, применяется на лайв и завершенных матчах */ @@ -108,7 +114,7 @@ export const StreamPlayer = (props: Props) => { {user - && [1136, 131, 2032].includes(Number(profile?.tournament.id)) + && Object.keys(tournamentsWithWatermark)?.includes(String(profile?.tournament.id)) && playing && isLive && (