From 6903e62b59637a4d9e2c86a390b2aa701b37af1e Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Tue, 30 May 2023 22:07:05 +0300 Subject: [PATCH] Tournament: Allow admin to add members to team after full --- app/features/tournament/routes/to.$id.admin.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/features/tournament/routes/to.$id.admin.tsx b/app/features/tournament/routes/to.$id.admin.tsx index 69cc2be62..fa6244415 100644 --- a/app/features/tournament/routes/to.$id.admin.tsx +++ b/app/features/tournament/routes/to.$id.admin.tsx @@ -115,10 +115,6 @@ export const action: ActionFunction = async ({ request, params }) => { case "ADD_MEMBER": { const team = teams.find((t) => t.id === data.teamId); validate(team, "Invalid team id"); - validate( - team.members.length < TOURNAMENT.TEAM_MAX_MEMBERS, - "Team is full" - ); validate( !teams.some((t) => t.members.some((m) => m.userId === data["user[value]"])