diff options
Diffstat (limited to 'frontend/src/redux/game.js')
-rw-r--r-- | frontend/src/redux/game.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/redux/game.js b/frontend/src/redux/game.js index 64373958..a19e155e 100644 --- a/frontend/src/redux/game.js +++ b/frontend/src/redux/game.js @@ -1,14 +1,14 @@ import { Map } from 'immutable' export const types = { - NEW_GAME: 'GAME/NEW_GAME', + CREATE_OR_UPDATE_GAMES: 'GAME/CREATE_OR_UPDATE_GAMES', ENTER_GAME: 'GAME/ENTER_GAME', JOIN_GAME: 'GAME/JOIN_GAME', CREATE_GAME: 'GAME/CREATE_GAME', } export const actions = { - newGame: (game) => ({ type: types.NEW_GAME, game }), + createOrUpdateGame: (game) => ({ type: types.CREATE_OR_UPDATE_GAMES, game }), enterGame: (username) => ({ type: types.ENTER_GAME, username }), joinGame: (id) => ({ type: types.JOIN_GAME, id }), createGame: (name) => ({ type: types.CREATE_GAME, name }), |