mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-14 15:16:09 -05:00
Fix member removing in 1v1, 2v2 & 3v3 tournaments
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user