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/lobby.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/lobby.js')
-rw-r--r-- | frontend/src/containers/lobby.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/frontend/src/containers/lobby.js b/frontend/src/containers/lobby.js index 90714aec..fc762056 100644 --- a/frontend/src/containers/lobby.js +++ b/frontend/src/containers/lobby.js @@ -1,6 +1,6 @@ import React, { Component } from 'react'; +import { List } from 'immutable'; import { connect } from 'react-redux'; -import Immutable from 'seamless-immutable'; import { Button } from 'rebass'; import PlayerList from '../components/playerList'; @@ -28,10 +28,11 @@ class Lobby extends Component { } const mapStateToProps = state => { - const game = getCurrentGame(state); + const game = getCurrentGame(state.get('games')); + console.info(game); return { currentGame: game, - players: game ? getPlayers(state, game.players) : Immutable([]), + players: game ? getPlayers(state.get('players'), game.players) : new List(), }; }; |