mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-15 07:43:44 -05:00
Fix member removing in 1v1, 2v2 & 3v3 tournaments
This commit is contained in:
parent
4e6a7d0995
commit
34c43da2f3
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user