diff --git a/src/web/reducers/app.ts b/src/web/reducers/app.ts index c726f1b..9854fe8 100644 --- a/src/web/reducers/app.ts +++ b/src/web/reducers/app.ts @@ -15,13 +15,13 @@ export const appReducer: Reducer = (state = INITIAL_STATE, switch (action.type) { case "app/openModal": return { + ...state, modal: action.id, - ...state }; case "app/closeModal": return { + ...state, modal: null, - ...state }; default: return state;