feat(2693): change lff tournaments list

keep-around/31934c87741a585cc6b3c9552489ffa62de670b6
nevainero 3 years ago
parent f799632e22
commit 31934c8774
  1. 7
      src/config/lffTournaments.tsx
  2. 3
      src/helpers/isPermittedTournament/index.tsx

@ -0,0 +1,7 @@
export const lffTournamentsList = [
262,
928,
1620,
5975,
5976,
]

@ -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
}

Loading…
Cancel
Save