From 31934c87741a585cc6b3c9552489ffa62de670b6 Mon Sep 17 00:00:00 2001 From: nevainero Date: Fri, 19 Aug 2022 11:39:28 +0300 Subject: [PATCH] feat(2693): change lff tournaments list --- src/config/lffTournaments.tsx | 7 +++++++ src/helpers/isPermittedTournament/index.tsx | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/config/lffTournaments.tsx diff --git a/src/config/lffTournaments.tsx b/src/config/lffTournaments.tsx new file mode 100644 index 00000000..15718df6 --- /dev/null +++ b/src/config/lffTournaments.tsx @@ -0,0 +1,7 @@ +export const lffTournamentsList = [ + 262, + 928, + 1620, + 5975, + 5976, +] diff --git a/src/helpers/isPermittedTournament/index.tsx b/src/helpers/isPermittedTournament/index.tsx index 8dbae6c3..9d65501b 100644 --- a/src/helpers/isPermittedTournament/index.tsx +++ b/src/helpers/isPermittedTournament/index.tsx @@ -2,6 +2,7 @@ import includes from 'lodash/includes' import { client } from 'config/clients' import { SportTypes } from 'config/sportTypes' +import { lffTournamentsList } from 'config/lffTournaments' export const isPermittedTournament = ( tournamentId: number, @@ -11,5 +12,5 @@ export const isPermittedTournament = ( return true } - return includes([928, 1620], tournamentId) && sportType === 1 + return includes(lffTournamentsList, tournamentId) && sportType === 1 }