diff --git a/public/locales/en/apfront.json b/public/locales/en/apfront.json index d2c2a9b..2338cec 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 4148ab0..116c7ec 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 63f95b8..f2b342a 100644 --- a/src/components/GameMove/Board.js +++ b/src/components/GameMove/Board.js @@ -47,7 +47,7 @@ function Board({