Skip to content

Commit

Permalink
Fix member removing in 1v1, 2v2 & 3v3 tournaments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sendouc committed Jan 5, 2025
1 parent 4e6a7d0 commit 34c43da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/features/tournament/actions/to.$id.admin.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ export const action: ActionFunction = async ({ request, params }) => {
const team = tournament.teamById(data.teamId);
validate(team, "Invalid team id");
validate(
team.checkIns.length === 0 || team.members.length > 4,
team.checkIns.length === 0 ||
team.members.length > tournament.minMembersPerTeam,
"Can't remove last member from checked in team",
);
validate(
Expand Down

0 comments on commit 34c43da

Please sign in to comment.