Fix member removing in 1v1, 2v2 & 3v3 tournaments

This commit is contained in:
Kalle 2025-01-05 11:29:27 +02:00
parent 4e6a7d0995
commit 34c43da2f3

View File

@ -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(