diff --git a/src/routes/GamePage.tsx b/src/routes/GamePage.tsx index 3758c89..c39c9e2 100644 --- a/src/routes/GamePage.tsx +++ b/src/routes/GamePage.tsx @@ -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;