From 8be26c06b7c9d74ec0f060cd1e9d2184758bba97 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Mon, 10 Jan 2022 15:04:31 +0100 Subject: [PATCH] Update modals.ts --- libs/remix-ui/app/src/lib/remix-app/reducer/modals.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/remix-ui/app/src/lib/remix-app/reducer/modals.ts b/libs/remix-ui/app/src/lib/remix-app/reducer/modals.ts index fb4f12d826..0a39da08ef 100644 --- a/libs/remix-ui/app/src/lib/remix-app/reducer/modals.ts +++ b/libs/remix-ui/app/src/lib/remix-app/reducer/modals.ts @@ -30,12 +30,12 @@ export const modalReducer = (state: ModalState = ModalInitialState, action: Moda return { ...state, modals: modalList } } case modalActionTypes.handleHideModal: - if (state.focusModal.resolve) { - state.focusModal.resolve(undefined) - } else if (state.focusModal.hideFn) { state.focusModal.hideFn() } + else if (state.focusModal.resolve) { + state.focusModal.resolve(undefined) + } state.focusModal = { ...state.focusModal, hide: true, message: null } return { ...state }