fix(#734): add watermark for india

pull/279/head
andreidekterev 2 years ago
parent 02c72a87f1
commit 9f0c779246
  1. 6
      src/features/StreamPlayer/index.tsx
  2. 1
      src/requests/getMatchInfo.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) => {
<Loader color='#515151' />
</LoaderWrapper>
{user
&& Boolean(
&& (Boolean(
tournamentsWithWatermark[profile?.tournament.id as keyof typeof tournamentsWithWatermark],
)
) || profile?.watermark)
&& playing
&& isLive
&& (

@ -68,6 +68,7 @@ export type MatchInfo = {
team2: Team,
tournament: MatchTournament,
video_bounds?: VideoBounds,
watermark?: boolean,
youtube_link?: string,
} | null

Loading…
Cancel
Save