fucking javascript

This commit is contained in:
anna 2022-12-16 05:05:02 +01:00
parent d26ef10958
commit 061e4ecb57
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

@ -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;