fix(#2392): don't request getteams and gettournaments fro ott

keep-around/9e82c6b3891a8524085e5da6dd70b8db5878faff
Andrei Dekterev 4 years ago
parent f88e3c1d2c
commit 9e82c6b389
  1. 4
      src/features/TournamentsPopup/store/hooks/index.tsx

@ -4,6 +4,8 @@ import {
useState, useState,
} from 'react' } from 'react'
import { client } from 'config/clients'
import map from 'lodash/map' import map from 'lodash/map'
import { import {
@ -42,6 +44,7 @@ export const useTournamentPopup = () => {
) )
useEffect(() => { useEffect(() => {
if (client.name === 'facr') {
(async () => { (async () => {
Promise.all([ Promise.all([
getTournaments(1, tournamentsId).then(convertData), getTournaments(1, tournamentsId).then(convertData),
@ -55,6 +58,7 @@ export const useTournamentPopup = () => {
setFetching(false) setFetching(false)
}) })
})() })()
}
}, [convertData]) }, [convertData])
return { return {

Loading…
Cancel
Save