Skip to content

Commit

Permalink
Update store.js
Browse files Browse the repository at this point in the history
Add "const" to pgnBoard
  • Loading branch information
QueensGambit authored May 7, 2024
1 parent 214dd5f commit e542f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ export const store = new Vuex.Store({
// if the SAN in the pgn is the same than the SAN in states.moves
// and we are at the last move, return pgn result
if (state.selectedGame) {
let pgnBoard = new ffish.Board(state.variant, state.startFen)
const pgnBoard = new ffish.Board(state.variant, state.startFen)

const pgnMoves = state.selectedGame.mainlineMoves()
const san = pgnBoard.variationSan(pgnMoves, ffish.Notation.SAN, false)
Expand Down

0 comments on commit e542f47

Please sign in to comment.