From 88072f8b0290b09007e7809c2c7a29a93fee23b5 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Mon, 20 Apr 2026 21:29:08 +0300 Subject: [PATCH] No LFG tab/prompt if tournament is invitational --- app/features/tournament-bracket/core/Tournament.ts | 1 + app/features/tournament-lfg/loaders/to.$id.looking.server.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/app/features/tournament-bracket/core/Tournament.ts b/app/features/tournament-bracket/core/Tournament.ts index 7024cb7ce..6b81a5937 100644 --- a/app/features/tournament-bracket/core/Tournament.ts +++ b/app/features/tournament-bracket/core/Tournament.ts @@ -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 ( diff --git a/app/features/tournament-lfg/loaders/to.$id.looking.server.ts b/app/features/tournament-lfg/loaders/to.$id.looking.server.ts index 2e8e055e2..cbf51fe81 100644 --- a/app/features/tournament-lfg/loaders/to.$id.looking.server.ts +++ b/app/features/tournament-lfg/loaders/to.$id.looking.server.ts @@ -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 }); }