From 55397736df1b21827f46212aae6a5997d3abeaaa Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Tue, 4 Feb 2025 12:32:18 +0200 Subject: [PATCH] Make invitationals actually invitational Closes #2013 --- app/features/tournament-bracket/core/Tournament.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/features/tournament-bracket/core/Tournament.ts b/app/features/tournament-bracket/core/Tournament.ts index 211de3819..6b0d787f3 100644 --- a/app/features/tournament-bracket/core/Tournament.ts +++ b/app/features/tournament-bracket/core/Tournament.ts @@ -872,7 +872,7 @@ export class Tournament { if (this.isLeagueSignup || this.isLeagueDivision) return 8; - const maxMembersBeforeStart = this.isInvitational ? 5 : 6; + const maxMembersBeforeStart = 6; if (this.hasStarted) { return maxMembersBeforeStart + 1; @@ -913,6 +913,8 @@ export class Tournament { } get registrationOpen() { + if (this.isInvitational) return false; + return this.registrationClosesAt > new Date(); }