Skip to content

Commit

Permalink
[#18752] fix: eliminate W/O address from account selection
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-ghafouri committed Feb 14, 2024
1 parent a8a279a commit 4158704
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/status_im/subs/communities.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@
(re-frame/reg-sub
:communities/selected-permission-accounts
(fn [[_ community-id]]
[(re-frame/subscribe [:wallet/accounts-with-customization-color])
[(re-frame/subscribe [:wallet/accounts-without-watched-accounts])
(re-frame/subscribe [:communities/selected-permission-addresses community-id])])
(fn [[accounts selected-permission-addresses]]
(filter #(contains? selected-permission-addresses (:address %)) accounts)))
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/subs/wallet/wallet.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@

(rf/reg-sub
:wallet/accounts-without-watched-accounts
:<- [:wallet/accounts]
:<- [:wallet/accounts-with-customization-color]
(fn [accounts]
(remove #(:watch-only? %) accounts)))

Expand Down

0 comments on commit 4158704

Please sign in to comment.