diff options
-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)) |