Skip to content

Commit

Permalink
Remove player conditional from finishGame (fixes #160) (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzhang authored Dec 22, 2024
1 parent 9aec3b9 commit 82d0cdc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/pages/GamePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 82d0cdc

Please sign in to comment.