Merge pull request #36 from jhalitaksoy/fix/check-user-left
fix: check if user is left when onPitSelect
This commit is contained in:
commit
e0c4d35b13
@ -161,6 +161,10 @@ const GamePage: FunctionComponent<{
|
||||
if (!game || isSpectator || !userKey) {
|
||||
return;
|
||||
}
|
||||
if(userKeyWhoLeave) {
|
||||
notyf.error(context.texts.GameEnded);
|
||||
return;
|
||||
}
|
||||
if(game.mancalaGame.state === "ended") {
|
||||
notyf.error(context.texts.GameEnded);
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user