diff options
author | Victor Chabbert <chabbertvi@eisti.eu> | 2017-05-28 20:42:21 +0200 |
---|---|---|
committer | Victor Chabbert <chabbertvi@eisti.eu> | 2017-05-28 20:42:21 +0200 |
commit | 0bf423172ffb2e4030b521b0985d133cb5c61dd9 (patch) | |
tree | 0c24821770274a414f80b3092d5be54902c042d9 /frontend/src/containers/gameBrowser.js | |
parent | Fix proxy not working since CRA upgrade (diff) | |
download | seven-wonders-0bf423172ffb2e4030b521b0985d133cb5c61dd9.tar.gz seven-wonders-0bf423172ffb2e4030b521b0985d133cb5c61dd9.tar.bz2 seven-wonders-0bf423172ffb2e4030b521b0985d133cb5c61dd9.zip |
Move to immutable with Records
Diffstat (limited to 'frontend/src/containers/gameBrowser.js')
-rw-r--r-- | frontend/src/containers/gameBrowser.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/containers/gameBrowser.js b/frontend/src/containers/gameBrowser.js index 643dbebc..ac3f1504 100644 --- a/frontend/src/containers/gameBrowser.js +++ b/frontend/src/containers/gameBrowser.js @@ -41,8 +41,8 @@ class GameBrowser extends Component { } const mapStateToProps = state => ({ - currentPlayer: getCurrentPlayer(state) || { displayName: '[ERROR]' }, - games: getAllGames(state), + currentPlayer: getCurrentPlayer(state.get('players')), + games: getAllGames(state.get('games')), }); const mapDispatchToProps = { |