From 82d0cdc0c2e23b2c7906c69a6aad869b06f927d4 Mon Sep 17 00:00:00 2001 From: Eric Zhang Date: Sun, 22 Dec 2024 16:25:58 -0500 Subject: [PATCH] Remove player conditional from finishGame (fixes #160) (#171) --- src/pages/GamePage.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/pages/GamePage.js b/src/pages/GamePage.js index 5142654..87a47d1 100644 --- a/src/pages/GamePage.js +++ b/src/pages/GamePage.js @@ -99,12 +99,7 @@ function GamePage() { if (!loadingGame && !loadingGameData && game && gameData) { const gameMode = game.mode || "normal"; const { current, history } = computeState(gameData, gameMode); - if ( - game.users && - user.id in game.users && - game.status === "ingame" && - !finishing.current - ) { + if (game.status === "ingame" && !finishing.current) { let hasSet = false; if (gameMode === "setchain" && history.length > 0) { const { c1, c2, c3 } = history[history.length - 1];