From 2c3cc95e9c9bd4cf3ecf94195647257be0e5c23f Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sat, 7 Sep 2024 09:06:40 +0300 Subject: [PATCH] Allow editing tournament team names while tournament is in progress --- app/features/tournament/routes/to.$id.admin.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/features/tournament/routes/to.$id.admin.tsx b/app/features/tournament/routes/to.$id.admin.tsx index 9815ebd8c..ed0ca6984 100644 --- a/app/features/tournament/routes/to.$id.admin.tsx +++ b/app/features/tournament/routes/to.$id.admin.tsx @@ -109,7 +109,6 @@ export const action: ActionFunction = async ({ request, params }) => { } case "CHANGE_TEAM_NAME": { validateIsTournamentOrganizer(); - validate(!tournament.hasStarted, "Tournament started"); const team = tournament.teamById(data.teamId); validate(team, "Invalid team id"); @@ -409,7 +408,7 @@ const actions = [ { type: "CHANGE_TEAM_NAME", inputs: ["REGISTERED_TEAM", "TEAM_NAME"] as InputType[], - when: ["TOURNAMENT_BEFORE_START"], + when: [], }, { type: "CHANGE_TEAM_OWNER",