diff --git a/src/routes/GamePage.tsx b/src/routes/GamePage.tsx index 83b7254..3758c89 100644 --- a/src/routes/GamePage.tsx +++ b/src/routes/GamePage.tsx @@ -161,6 +161,10 @@ const GamePage: FunctionComponent<{ if (!game || isSpectator || !userKey) { return; } + if(game.mancalaGame.state === "ended") { + notyf.error(context.texts.GameEnded); + return; + } if (Util.checkConnectionAndMaybeAlert(context)) return; if (game.mancalaGame.getPlayerIdByIndex(index) !== userKey) { notyf.error(context.texts.UCanOnlyPlayYourOwnPits);