From 061e4ecb571f5a5c34d7f92656f2c006c5049361 Mon Sep 17 00:00:00 2001 From: fef Date: Fri, 16 Dec 2022 05:05:02 +0100 Subject: [PATCH] fucking javascript --- src/web/reducers/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;