diff options
Diffstat (limited to 'frontend/src/redux/games.js')
-rw-r--r-- | frontend/src/redux/games.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/redux/games.js b/frontend/src/redux/games.js index e89bb842..22b0d6bc 100644 --- a/frontend/src/redux/games.js +++ b/frontend/src/redux/games.js @@ -2,7 +2,7 @@ import type { List, Map } from 'immutable'; import { fromJS } from 'immutable'; import type { Game, GameMapType, GameNormalMapType, GameShape } from '../models/games'; -import GamesState from '../models/games'; +import { GamesState } from '../models/games'; export const types = { UPDATE_GAMES: 'GAMES/UPDATE_GAMES', @@ -29,7 +29,7 @@ export const actions = { enterGame: () => ({ type: types.ENTER_GAME }), }; -export default (state: GamesState = new GamesState(), action: Actions) => { +export const gamesReducer = (state: GamesState = new GamesState(), action: Actions) => { switch (action.type) { case types.UPDATE_GAMES: return state.addGames(action.games); |