mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-08 12:16:12 -05:00
Don't load streams for tournament if before start
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user