Skip to content

Commit

Permalink
Fix js error
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacl committed Jul 9, 2019
1 parent 3b815a3 commit e943051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/editor/src/chessground.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function onMouseEvent(ctrl) {
(e.type === 'mousedown' || e.type === 'touchstart' || key !== lastKey)
) {
ctrl.chessground.setPieces({
key: piece
[key]: piece
});
ctrl.onChange();
ctrl.chessground.cancelMove();
Expand Down Expand Up @@ -124,7 +124,7 @@ function deleteOrHidePiece(ctrl, key, e) {

function deletePiece(ctrl, key) {
ctrl.chessground.setPieces({
key: false
[key]: false
});
ctrl.onChange();
}
Expand Down

0 comments on commit e943051

Please sign in to comment.