From e20a6b1cbeddb6bbfa8ba7740c211750098a29b0 Mon Sep 17 00:00:00 2001 From: pvanwamelen Date: Tue, 3 Dec 2024 22:01:27 -0500 Subject: [PATCH] More better --- public/locales/en/apfront.json | 1 + src/components/GameMove.js | 2 +- src/components/GameMove/Board.js | 2 +- src/components/Me.js | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/locales/en/apfront.json b/public/locales/en/apfront.json index d2c2a9b4..2338cec1 100644 --- a/public/locales/en/apfront.json +++ b/public/locales/en/apfront.json @@ -754,6 +754,7 @@ "DivisionWinner": "Winner: {{winner}}", "Withdraw": "Withdraw" }, + "TriggerRefresh": "Trigger a refresh", "TwoPlayersChallengeDescription": "You challenged {{other}} to a game of {{game}}", "UnratedGame": "This will be an unrated game.", "UpdateNote": "Update game note", diff --git a/src/components/GameMove.js b/src/components/GameMove.js index 4148ab03..116c7ecb 100644 --- a/src/components/GameMove.js +++ b/src/components/GameMove.js @@ -1555,7 +1555,7 @@ function GameMove(props) { ); if (exploration !== null) { let ok = explorationRef.current.nodes.length === exploration.length; - for (let i = 0; i < explorationRef.current.nodes.length; i++) { + for (let i = 0; ok && i < explorationRef.current.nodes.length; i++) { if (exploration[i].state !== explorationRef.current.nodes[i].state) { ok = false; break; diff --git a/src/components/GameMove/Board.js b/src/components/GameMove/Board.js index 63f95b8e..f2b342a1 100644 --- a/src/components/GameMove/Board.js +++ b/src/components/GameMove/Board.js @@ -47,7 +47,7 @@ function Board({