fucking javascript
This commit is contained in:
parent
d26ef10958
commit
061e4ecb57
1 changed files with 2 additions and 2 deletions
|
@ -15,13 +15,13 @@ export const appReducer: Reducer<AppState, RootAction> = (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;
|
||||
|
|
Loading…
Reference in a new issue