mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
Fix subs tab showing on LUTI sign up page after reg closed
This commit is contained in:
parent
21fece286d
commit
ed5cd90734
|
|
@ -25,6 +25,10 @@ export const loader = async ({ params }: LoaderFunctionArgs) => {
|
|||
user,
|
||||
});
|
||||
|
||||
if (tournament.isLeagueSignup && !tournament.registrationOpen) {
|
||||
throw new Response(null, { status: 404 });
|
||||
}
|
||||
|
||||
if (tournament.registrationOpen) {
|
||||
return lookingMode({ tournamentId, user });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -157,7 +157,9 @@ export function TournamentLayout() {
|
|||
>
|
||||
{t("tournament:tabs.teams", { count: tournament.ctx.teams.length })}
|
||||
</SubNavLink>
|
||||
{!tournament.isInvitational && !tournament.everyBracketOver ? (
|
||||
{!tournament.isInvitational &&
|
||||
!tournament.everyBracketOver &&
|
||||
!(tournament.isLeagueSignup && !tournament.registrationOpen) ? (
|
||||
<SubNavLink to="looking">
|
||||
{tournament.registrationOpen
|
||||
? t("tournament:tabs.looking")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user