Skip to content

Commit d891aab

Browse files
[#22439] fix: open from page when multi operable account exist (#22507)
1 parent 68366d9 commit d891aab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/status_im/contexts/wallet/home/view.cljs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@
8282

8383
(defn- call-to-actions
8484
[]
85-
(let [account-cards-data (rf/sub [:wallet/account-cards-data])
85+
(let [operable-accounts (rf/sub [:wallet/operable-accounts])
8686
testnet-mode? (rf/sub [:profile/test-networks-enabled?])
87-
multiple-accounts? (> (count account-cards-data) 1)
88-
first-account-address (:address (first account-cards-data))
87+
multiple-accounts? (> (count operable-accounts) 1)
88+
first-account-address (:address (first operable-accounts))
8989
on-send-press (rn/use-callback
9090
(fn []
9191
(rf/dispatch [:wallet/clean-send-data])

0 commit comments

Comments
 (0)