Skip to content

Commit

Permalink
Preserve FEN when changing orientation (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkasa authored Dec 4, 2024
1 parent 7f7fff9 commit 9ba3649
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/boards/Board.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ function Board({
const toggleOrientation = () =>
setHeaders({
...headers,
fen: root.fen, // To keep the current board setup
orientation: orientation === "black" ? "white" : "black",
});

Expand Down

0 comments on commit 9ba3649

Please sign in to comment.