patch game_resign in games reducer

This commit is contained in:
sorrelbri 2020-06-07 15:10:18 -07:00
parent 17b2e2c31f
commit 249789944b

View file

@ -30,7 +30,7 @@ export const gamesReducer = (state, action) => {
} }
case "GAME_RESIGN": { case "GAME_RESIGN": {
const { gameRecord, pass, turn, winner, playerState } = action.body.meta; const { gameRecord, pass, turn, winner, playerState } = action.body;
return { return {
...state, ...state,
meta: { gameRecord, pass, turn, winner, playerState }, meta: { gameRecord, pass, turn, winner, playerState },