Skip to content

Commit

Permalink
fix #8 FEN parameter not initialised in 'chess'
Browse files Browse the repository at this point in the history
  • Loading branch information
jniemann66 committed Apr 23, 2017
1 parent f4e480c commit aa63c5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/dev.chessdiagram.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion demo/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class App extends Component {
gameHistory: true,
ranks: 8,
pieceDefinitions: {},
fen: '',
pgn: ['[Event "Third Rosenwald Trophy"]',
'[Site "New York, NY USA"]',
'[Date "1956.10.17"]',
Expand Down Expand Up @@ -98,7 +99,7 @@ class App extends Component {
pgn: ''
}
};
this.state = Object.assign({}, this.state, this.gamePresets[this.state.gameType])
this.state = Object.assign({}, this.state, this.gamePresets[this.state.gameType]);
}

// Convenience function for concisely creating piece definition callbacks
Expand Down

0 comments on commit aa63c5d

Please sign in to comment.