Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarBasem committed Jun 14, 2024
1 parent debb454 commit 7775286
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/status_im/contexts/wallet/db.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
:selected-networks (set constants/default-network-names)})

(def defaults
{:ui {:network-filter network-filter-defaults
:tokens-loading? true}})
{:ui {:network-filter network-filter-defaults
:tokens-loading {}}})
13 changes: 8 additions & 5 deletions src/status_im/subs/wallet/wallet.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@
:wallet/home-tokens-loading?
:<- [:wallet/tokens-loading]
(fn [tokens-loading]
(->> tokens-loading
vals
(some true?)
boolean)))
(if (empty? tokens-loading)
true
(->> tokens-loading
vals
(some true?)
boolean))))

(rf/reg-sub
:wallet/current-viewing-account-tokens-loading?
Expand Down Expand Up @@ -335,7 +337,8 @@
:customization-color color
:type (if watch-only? :watch-only :empty)
:on-press #(rf/dispatch [:wallet/navigate-to-account address])
:loading? (get tokens-loading address)
:loading? (or (get tokens-loading address)
(not (contains? tokens-loading address)))
:balance (utils/prettify-balance currency-symbol (get balances address))))
accounts)))

Expand Down

0 comments on commit 7775286

Please sign in to comment.