awaitasyncmodals
bunsenstraat 3 years ago
parent 8be26c06b7
commit 0706f8b5ae
  1. 3
      libs/remix-ui/app/src/lib/remix-app/reducer/modals.ts

@ -32,8 +32,7 @@ export const modalReducer = (state: ModalState = ModalInitialState, action: Moda
case modalActionTypes.handleHideModal: case modalActionTypes.handleHideModal:
if (state.focusModal.hideFn) { if (state.focusModal.hideFn) {
state.focusModal.hideFn() state.focusModal.hideFn()
} } else if (state.focusModal.resolve) {
else if (state.focusModal.resolve) {
state.focusModal.resolve(undefined) state.focusModal.resolve(undefined)
} }
state.focusModal = { ...state.focusModal, hide: true, message: null } state.focusModal = { ...state.focusModal, hide: true, message: null }

Loading…
Cancel
Save