From 022e189d497ad3965561db0523819779531ea920 Mon Sep 17 00:00:00 2001 From: jbion Date: Fri, 12 May 2017 13:56:09 +0200 Subject: Fix getGame which needs to use a string instead of int key --- frontend/src/redux/games.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend') 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)) -- cgit