Fix DE standings crash when not enough teams

This commit is contained in:
Kalle
2024-10-06 11:48:04 +03:00
parent c24c4295c4
commit 2dede2a051

View File

@@ -543,6 +543,8 @@ class DoubleEliminationBracket extends Bracket {
}
get standings(): Standing[] {
if (!this.enoughTeams) return [];
const losersGroupId = this.data.group.find((g) => g.number === 2)?.id;
const teams: { id: number; lostAt: number }[] = [];