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 }