Skip to content

Commit

Permalink
[#21323] fix: get accounts by index
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-ghafouri authored and Horupa-Olena committed Dec 3, 2024
1 parent 118ff09 commit 9eb6c45
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/status_im/contexts/wallet/swap/utils.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
(defn current-viewing-account
[wallet]
(when-let [wallet-address (get wallet :current-viewing-account-address)]
(-> wallet
:accounts
vals
(utils/get-account-by-address wallet-address))))
(get-in wallet [:accounts wallet-address])))

(defn select-asset-to-pay-by-symbol
"Selects an asset to pay by token symbol.
Expand Down

0 comments on commit 9eb6c45

Please sign in to comment.