Compare commits

...
@@ -249,15 +249,13 @@
(rf/reg-event-fx :wallet/stop-get-swap-proposal (rf/reg-event-fx :wallet/stop-get-swap-proposal
(fn [{:keys [db]}] (fn [{:keys [db]}]
(let [route-request-ongoing? (some? (get-in db [:wallet :ui :swap :last-request-uuid]))] {:db (update-in db [:wallet :ui :swap] dissoc :last-request-uuid)
(when route-request-ongoing? :json-rpc/call [{:method "wallet_stopSuggestedRoutesAsyncCalculation"
{:db (update-in db [:wallet :ui :swap] dissoc :last-request-uuid) :params []
:json-rpc/call [{:method "wallet_stopSuggestedRoutesAsyncCalculation" :on-error (fn [error]
:params [] (log/error "failed to stop fetching swap proposals"
:on-error (fn [error] {:event :wallet/stop-get-swap-proposal
(log/error "failed to stop fetching swap proposals" :error error}))}]}))
{:event :wallet/stop-get-swap-proposal
:error error}))}]}))))
(rf/reg-event-fx (rf/reg-event-fx
:wallet/clean-swap-proposal :wallet/clean-swap-proposal