react-chessboard-ui 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1518,7 +1518,7 @@ var prepareCastlingByFEN = function prepareCastlingByFEN(castlingNotation, state
1518
1518
  }
1519
1519
  if (castlingNotation.includes('q')) {
1520
1520
  if (!!preparedState[0][0].figure) {
1521
- preparedState[0][0].figure = _extends({}, preparedState[0][preparedState.length - 1].figure, {
1521
+ preparedState[0][0].figure = _extends({}, preparedState[0][0].figure, {
1522
1522
  touched: false
1523
1523
  });
1524
1524
  preparedState[0][4].figure = _extends({}, preparedState[0][4].figure, {