mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-09 04:02:40 -05:00
Don't load streams for tournament if before start
This commit is contained in:
parent
ef5c906321
commit
48f9f76259
|
|
@ -95,7 +95,9 @@ export const loader = async ({ params, request }: LoaderArgs) => {
|
|||
teams: censorMapPools(teams),
|
||||
mapListGeneratorAvailable,
|
||||
hasStarted,
|
||||
streamsCount: (await streamsByTournamentId(tournamentId)).length,
|
||||
streamsCount: hasStarted
|
||||
? (await streamsByTournamentId(tournamentId)).length
|
||||
: 0,
|
||||
};
|
||||
|
||||
function censorMapPools(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user