No LFG tab/prompt if tournament is invitational
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run

This commit is contained in:
Kalle
2026-04-20 21:29:08 +03:00
parent 02f375804f
commit 88072f8b02
2 changed files with 5 additions and 0 deletions

View File

@@ -828,6 +828,7 @@ export class Tournament {
/** Can a new sub post be made at this time? */
get canAddNewSubPost() {
if (!this.lfgEnabled) return false;
if (this.isInvitational) return false;
if (this.ctx.isFinalized) return false;
return (

View File

@@ -29,6 +29,10 @@ export const loader = async ({ params }: LoaderFunctionArgs) => {
throw new Response(null, { status: 404 });
}
if (tournament.isInvitational) {
throw new Response(null, { status: 404 });
}
if (tournament.isLeagueSignup && !tournament.registrationOpen) {
throw new Response(null, { status: 404 });
}