Skip to content

Commit

Permalink
Merge pull request #21 from franciscoBSalgueiro/20-the-flip-board-but…
Browse files Browse the repository at this point in the history
…ton-doesnt-work-the-first-time-its-pressed

Fix flip board not working the first time
  • Loading branch information
franciscoBSalgueiro authored Oct 2, 2023
2 parents b143b8f + 3faabc9 commit ffcac50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/boards/BoardPlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function BoardPlay({
type: "SET_HEADERS",
payload: {
...headers,
orientation: headers.orientation === "white" ? "black" : "white",
orientation: headers.orientation === "black" ? "white" : "black",
},
});

Expand Down

0 comments on commit ffcac50

Please sign in to comment.