Temporarily relax tournament admin tab validation for IGN to allow submitting teams with bad IGN
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-06-19 18:06:55 +03:00
parent b431d041f5
commit f5ddf9a6ec

View File

@@ -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,
}),
}),
});