diff --git a/ui/src/app/components/leaderboard/SeasonTable.tsx b/ui/src/app/components/leaderboard/SeasonTable.tsx index 457fdf2c8..f01906a89 100644 --- a/ui/src/app/components/leaderboard/SeasonTable.tsx +++ b/ui/src/app/components/leaderboard/SeasonTable.tsx @@ -28,12 +28,17 @@ const SeasonTable = ({ const network = useUIStore((state) => state.network); const seasonActive = process.env.NEXT_PUBLIC_SEASON_ACTIVE === "true"; + const isDSTournamentActive = + process.env.NEXT_PUBLIC_DS_TOURNAMENT_ACTIVE === "true"; + const dsTournamentId = process.env.NEXT_PUBLIC_DS_TOURNAMENT_ID ?? 0; // Memoize both the variables AND the client const { variables, client } = useMemo(() => { return { variables: { - tournamentId: networkConfig[network!].tournamentId, + tournamentId: isDSTournamentActive + ? dsTournamentId + : networkConfig[network!].tournamentId, }, client: tournamentClient(networkConfig[network!].tournamentGQLURL), }; @@ -99,9 +104,13 @@ const SeasonTable = ({