[Fix] Wallet - Route not found (#18682)
This commit fixes the route not fetched bug on the Wallet send flow. Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
This commit is contained in:
parent
e4ba0d3062
commit
067b2d5afb
|
@ -60,7 +60,9 @@
|
||||||
(fn [{:keys [db]} [{:keys [address token recipient stack-id]}]]
|
(fn [{:keys [db]} [{:keys [address token recipient stack-id]}]]
|
||||||
(let [[prefix to-address] (utils/split-prefix-and-address address)
|
(let [[prefix to-address] (utils/split-prefix-and-address address)
|
||||||
prefix-seq (string/split prefix #":")
|
prefix-seq (string/split prefix #":")
|
||||||
selected-networks (mapv #(utils/short-name->id (keyword %)) prefix-seq)]
|
selected-networks (->> prefix-seq
|
||||||
|
(remove string/blank?)
|
||||||
|
(mapv #(utils/short-name->id (keyword %))))]
|
||||||
{:db (-> db
|
{:db (-> db
|
||||||
(assoc-in [:wallet :ui :send :recipient] (or recipient address))
|
(assoc-in [:wallet :ui :send :recipient] (or recipient address))
|
||||||
(assoc-in [:wallet :ui :send :to-address] to-address)
|
(assoc-in [:wallet :ui :send :to-address] to-address)
|
||||||
|
|
Loading…
Reference in New Issue