mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-28 06:10:01 -05:00
Hotfix reopen
This commit is contained in:
@@ -782,7 +782,12 @@ export class Tournament {
|
||||
invariant(bracket, "Bracket not found");
|
||||
|
||||
const hasInProgressFollowUpBracket = this.brackets.some(
|
||||
(b) => !b.preview && b.sources?.some((s) => s.bracketIdx === bracketIdx),
|
||||
(b) =>
|
||||
!b.preview &&
|
||||
b.sources?.some((s) => s.bracketIdx === bracketIdx) &&
|
||||
b.data.participant.some(
|
||||
(p) => p.id === match.opponent1?.id || p.id === match.opponent2?.id,
|
||||
),
|
||||
);
|
||||
|
||||
if (hasInProgressFollowUpBracket) return false;
|
||||
|
||||
Reference in New Issue
Block a user