summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2017-05-12 13:56:09 +0200
committerjbion <joffrey.bion@amadeus.com>2017-05-12 13:56:09 +0200
commit022e189d497ad3965561db0523819779531ea920 (patch)
treea345c98e7cda78b9727b7dabb8bb363547e37e58
parentFirst attempt at lobby joining (diff)
downloadseven-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
-rw-r--r--frontend/src/redux/games.js2
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))
bgstack15