Skip to content

Commit

Permalink
Merge pull request #16 from chesslablab/issue/13-Fix-the-copy-of-FEN-…
Browse files Browse the repository at this point in the history
…strings

Fixed GameActionsDropdown
  • Loading branch information
programarivm authored Mar 22, 2024
2 parents 75d90d3 + 80b905f commit 3f5a7d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GameActionsDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class GameActionsDropdown extends AbstractComponent {

this._el.children.item(2).addEventListener('click', (event) => {
event.preventDefault();
navigator.clipboard.writeText(this._props.movesTable.props.fen[this._props.movesTable.props.fen.length - 1]);
navigator.clipboard.writeText(this._props.movesTable.props.fen[this._props.movesTable.current]);
});
}
}

0 comments on commit 3f5a7d7

Please sign in to comment.