mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-27 14:04:01 -05:00
Hotfix reopen
This commit is contained in:
parent
df950c6033
commit
d00f182d90
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user