File tree 2 files changed +2
-7
lines changed
src/status_im/contexts/wallet/swap
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 204
204
(fn [{:keys [db]}]
205
205
{:db (update-in db [:wallet :ui ] dissoc :swap )}))
206
206
207
- (rf/reg-event-fx
208
- :wallet/on-swap-done
209
- (fn [_]
210
- {:fx [[:dispatch [:wallet/select-account-tab :activity ]]
211
- [:dispatch [:wallet/clean-swap ]]]}))
212
-
213
207
(rf/reg-event-fx :wallet/swap-transaction
214
208
(fn [{:keys [db]} [sha3-pwd]]
215
209
(let [wallet-address (get-in db
299
293
:screen/wallet.swap-set-spending-cap
300
294
:screen/wallet.swap-confirmation )])
301
295
(when-not approval-required?
296
+ (rf/dispatch [:wallet/select-account-tab :activity ])
302
297
(debounce/debounce-and-dispatch
303
298
[:toasts/upsert
304
299
{:id :swap-transaction-pending
Original file line number Diff line number Diff line change 156
156
:valid-input? valid-pay-input?
157
157
:clean-approval-transaction? true }))
158
158
[pay-input-amount])]
159
- (rn/use-unmount #(rf/dispatch [:wallet/on -swap-done ]))
159
+ (rn/use-unmount #(rf/dispatch [:wallet/clean -swap ]))
160
160
(rn/use-effect
161
161
(fn []
162
162
(request-fetch-swap-proposal ))
You can’t perform that action at this time.
0 commit comments