From f5ddf9a6ec90168aead630b3ec94d866500c76eb Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Fri, 19 Jun 2026 18:06:55 +0300 Subject: [PATCH] Temporarily relax tournament admin tab validation for IGN to allow submitting teams with bad IGN --- .../tournament-admin-registration-schemas.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/features/tournament-admin/tournament-admin-registration-schemas.ts b/app/features/tournament-admin/tournament-admin-registration-schemas.ts index 4d9c76fe3..3808c292b 100644 --- a/app/features/tournament-admin/tournament-admin-registration-schemas.ts +++ b/app/features/tournament-admin/tournament-admin-registration-schemas.ts @@ -5,7 +5,6 @@ import { fieldset, idConstantOptional, image, - inGameName, selectDynamic, stringConstant, teamSearchOptional, @@ -14,6 +13,7 @@ import { tournamentSearchOptional, userSearch, } from "~/form/fields"; +import { IN_GAME_NAME_MAX_LENGTH } from "../user-page/in-game-name"; /** * Roster size cap for organizer-managed registrations. The per-tournament * `maxMembersPerTeam` limit intentionally doesn't apply to organizers, so this @@ -24,8 +24,9 @@ export const ADMIN_REGISTRATION_MAX_MEMBERS = 20; const memberFieldset = fieldset({ fields: z.object({ userId: userSearch({ label: "labels.player" }), - inGameName: inGameName({ + inGameName: textFieldOptional({ label: "labels.inGameName", + maxLength: IN_GAME_NAME_MAX_LENGTH, }), }), });