diff options
author | jbion <joffrey.bion@amadeus.com> | 2017-05-12 13:56:09 +0200 |
---|---|---|
committer | jbion <joffrey.bion@amadeus.com> | 2017-05-12 13:56:09 +0200 |
commit | 022e189d497ad3965561db0523819779531ea920 (patch) | |
tree | a345c98e7cda78b9727b7dabb8bb363547e37e58 /frontend | |
parent | First attempt at lobby joining (diff) | |
download | seven-wonders-022e189d497ad3965561db0523819779531ea920.tar.gz seven-wonders-022e189d497ad3965561db0523819779531ea920.tar.bz2 seven-wonders-022e189d497ad3965561db0523819779531ea920.zip |
Fix getGame which needs to use a string instead of int key
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/src/redux/games.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/redux/games.js b/frontend/src/redux/games.js index 5ad6f8d2..e78e220f 100644 --- a/frontend/src/redux/games.js +++ b/frontend/src/redux/games.js @@ -34,6 +34,6 @@ const getState = globalState => globalState.get('games') export const getAllGamesById = globalState => getState(globalState).get('all') export const getAllGames = globalState => getAllGamesById(globalState).toList() -export const getGame = (globalState, id) => getAllGamesById(globalState).get(id) +export const getGame = (globalState, id) => getAllGamesById(globalState).get(String(id)) export const getCurrentGameId = globalState => getState(globalState).get('current') export const getCurrentGame = globalState => getGame(globalState, getCurrentGameId(globalState)) |