[#4754] discard transaction if transaction's modal is closed before sending transaction
This commit is contained in:
parent
c1120119b2
commit
0dd5c11b47
|
@ -116,7 +116,15 @@
|
|||
[view common-styles/modal
|
||||
[modal {:animation-type :slide
|
||||
:transparent true
|
||||
:on-request-close #(dispatch [:navigate-back])}
|
||||
:on-request-close (fn []
|
||||
(cond
|
||||
(#{:wallet-send-transaction-modal
|
||||
:wallet-transaction-fee}
|
||||
modal-view)
|
||||
(dispatch [:wallet/discard-transaction-navigate-back])
|
||||
|
||||
:else
|
||||
(dispatch [:navigate-back])))}
|
||||
(let [component (get-modal-component modal-view)]
|
||||
[react/main-screen-modal-view modal-view
|
||||
[component]])]])))
|
||||
|
|
Loading…
Reference in New Issue