File tree 1 file changed +8
-4
lines changed
src/status_im/contexts/wallet/swap
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 294
294
:receive-token-symbol token-id-to
295
295
:receive-amount receive-amount}))])
296
296
(rf/dispatch [:hide-bottom-sheet ])
297
- (rf/dispatch [:dismiss-modal
298
- (if approval-required?
299
- :screen/wallet.swap-set-spending-cap
300
- :screen/wallet.swap-confirmation )])
297
+ (rf/dispatch [:wallet/end-swap-flow ])
301
298
(when-not approval-required?
302
299
(debounce/debounce-and-dispatch
303
300
[:toasts/upsert
424
421
:last-request-uuid
425
422
:approved-amount
426
423
:approval-transaction-id )))})))
424
+
425
+ (rf/reg-event-fx :wallet/end-swap-flow
426
+ (fn [{:keys [db]}]
427
+ (let [address (get-in db [:wallet :current-viewing-account-address ])]
428
+ {:fx [[:dispatch [:wallet/navigate-to-account-within-stack address]]
429
+ [:dispatch [:wallet/fetch-activities-for-current-account ]]
430
+ [:dispatch [:wallet/select-account-tab :activity ]]]})))
You can’t perform that action at this time.
0 commit comments