From f02325c470d9aaff272bf8bc0f274c1e55c66e6e Mon Sep 17 00:00:00 2001 From: Andrei Dekterev Date: Fri, 10 Feb 2023 16:50:35 +0700 Subject: [PATCH] fix(#290): remove some tournaments for watermark --- src/features/StreamPlayer/index.tsx | 6 +++--- src/requests/getSound.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/features/StreamPlayer/index.tsx b/src/features/StreamPlayer/index.tsx index 46a4a3e1..0d550ab1 100644 --- a/src/features/StreamPlayer/index.tsx +++ b/src/features/StreamPlayer/index.tsx @@ -28,10 +28,8 @@ import { Controls } from './components/Controls' import RewindMobile from './components/RewindMobile' const tournamentsWithWatermark = { - 131: 'Spain', 316: 'Tunisia', 1136: 'Brasil', - 2032: 'Spain', } /** * HLS плеер, применяется на лайв и завершенных матчах @@ -114,7 +112,9 @@ export const StreamPlayer = (props: Props) => { {user - && Object.keys(tournamentsWithWatermark)?.includes(String(profile?.tournament.id)) + && Boolean( + tournamentsWithWatermark[profile?.tournament.id as keyof typeof tournamentsWithWatermark], + ) && playing && isLive && ( diff --git a/src/requests/getSound.tsx b/src/requests/getSound.tsx index 22634dcd..318ff00b 100644 --- a/src/requests/getSound.tsx +++ b/src/requests/getSound.tsx @@ -12,6 +12,6 @@ export const getSound = async (id: number | string): Promise => { return callApi({ config, - url: `${API_ROOT}/v1/highlights/music/${id}`, + url: `${API_ROOT}/v1/aws/highlights/music/${id}`, }) }