mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-24 23:19:39 -05:00
Fix being able to report bracket reset scores after grand final is over
This commit is contained in:
parent
0a6b88e574
commit
b1fb4a20a3
|
|
@ -501,7 +501,13 @@ export class BaseGetter {
|
|||
roundNumber: number,
|
||||
roundCount: number,
|
||||
): Match[] {
|
||||
if (roundNumber === roundCount) return [];
|
||||
if (
|
||||
roundNumber === roundCount ||
|
||||
// avoid putting teams to bracket reset if tournament is over
|
||||
match.opponent1?.result === "win"
|
||||
) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return [this.findMatch(match.group_id, roundNumber + 1, 1)];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user