Fix player addition logic in match handling
Prevent adding a player to matchPlayers if userIndex is not found.
This commit is contained in:
parent
a0c3d54713
commit
d9f77887f8
1 changed files with 2 additions and 2 deletions
|
|
@ -821,7 +821,7 @@
|
||||||
...matchPlayers.slice(userIndex + 1)
|
...matchPlayers.slice(userIndex + 1)
|
||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
matchPlayers = [...matchPlayers, params[0]];
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue