Skip to content

Commit

Permalink
More better
Browse files Browse the repository at this point in the history
  • Loading branch information
pvanwamelen committed Dec 4, 2024
1 parent cb82da5 commit e20a6b1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions public/locales/en/apfront.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/components/GameMove.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/components/GameMove/Board.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function Board({
<button
className="button is-small apButton"
onClick={() => setRefresh((val) => val + 1)}
title="Trigger a refresh"
title={t("TriggerRefresh")}
>
<span className="icon">
<i className="fa fa-refresh"></i>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Me.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ function Me(props) {
<button
className="button is-small apButton"
onClick={() => setRefresh((val) => val + 1)}
title="Trigger a refresh"
title={t("TriggerRefresh")}
>
<span className="icon">
<i className="fa fa-refresh"></i>
Expand Down

0 comments on commit e20a6b1

Please sign in to comment.