Skip to content

Commit

Permalink
re issue #10 - assign array to moves (not empty string)
Browse files Browse the repository at this point in the history
  • Loading branch information
jniemann66 committed Apr 23, 2017
1 parent 911b7fa commit 19eadb5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/dev.chessdiagram.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/dist.chessdiagram.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/chessdiagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Chessdiagram extends Component {
// If FEN is NOT present, and PGN is NOT present, make first element of moves array an empty string
const moves = props.fen ?
Array.isArray(props.fen) ? props.fen : [props.fen]
: props.pgn ? props.getFensFromPgn(props.pgn) : '';
: props.pgn ? props.getFensFromPgn(props.pgn) : [''];

// If there is a PGN, set currentMove to this.startMove, otherwise zero.
const currentMove = props.pgn ? this.startMove : 0;
Expand Down

0 comments on commit 19eadb5

Please sign in to comment.