mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-09 12:46:10 -05:00
Fix crash when underground bracket & byes in losers
This commit is contained in:
@@ -450,6 +450,10 @@ class DoubleEliminationBracket extends Bracket {
|
||||
);
|
||||
|
||||
for (const match of roundsMatches) {
|
||||
// BYE
|
||||
if (!match.opponent1 || !match.opponent2) {
|
||||
continue;
|
||||
}
|
||||
if (
|
||||
match.opponent1?.result !== "win" &&
|
||||
match.opponent2?.result !== "win"
|
||||
|
||||
Reference in New Issue
Block a user