From 11a84ba1459ec345443467fe092bf1a1440a6436 Mon Sep 17 00:00:00 2001 From: Brian Sztamfater Date: Mon, 29 Jul 2024 12:47:35 -0300 Subject: [PATCH] feat(wallet): disable complex routing (#20901) --- src/status_im/contexts/wallet/send/events.cljs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/status_im/contexts/wallet/send/events.cljs b/src/status_im/contexts/wallet/send/events.cljs index c93e47a62e..e3fa5c5173 100644 --- a/src/status_im/contexts/wallet/send/events.cljs +++ b/src/status_im/contexts/wallet/send/events.cljs @@ -504,6 +504,8 @@ (let [suggested-routes-new-data (data-store/rpc->suggested-routes data) suggested-routes (-> suggested-routes-new-data first + ;; if route is multichain, we remove it + (update :best (fn [best] (if (> (count best) 1) [] best))) (update :best #(map data-store/new->old-route-path %)) (update :candidates #(map data-store/new->old-route-path %)))] {:fx [[:dispatch