Browse Source

Correct onClose handling on Send modal

master
meriadec 7 years ago
parent
commit
be9205caed
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 12
      src/components/modals/Send/index.js

12
src/components/modals/Send/index.js

@ -278,17 +278,9 @@ class SendModal extends Component<Props, State<*>> {
name={MODAL_SEND} name={MODAL_SEND}
onBeforeOpen={this.handleBeforeOpenModal} onBeforeOpen={this.handleBeforeOpenModal}
preventBackdropClick={!canClose} preventBackdropClick={!canClose}
onClose={canClose ? this.handleReset : undefined}
render={({ onClose }) => ( render={({ onClose }) => (
<ModalBody <ModalBody onClose={onClose}>
onClose={
canClose
? () => {
this.handleReset()
onClose()
}
: undefined
}
>
<PollCounterValuesOnMount /> <PollCounterValuesOnMount />
<SyncSkipUnderPriority priority={80} /> <SyncSkipUnderPriority priority={80} />
{account && <SyncOneAccountOnMount priority={81} accountId={account.id} />} {account && <SyncOneAccountOnMount priority={81} accountId={account.id} />}

Loading…
Cancel
Save