Skip to content

Commit

Permalink
fix_: use usd as default currency (#20916)
Browse files Browse the repository at this point in the history
This commit uses "usd" currency as default for the fiat price calculation for the tokens. 

Every currency has a different format - decimal which we need to rely on a separate RPC to fetch currency format and do the calculation. So, this PR will change to use usd as the default for v2.30.

Signed-off-by: Mohamed Javid <[email protected]>
  • Loading branch information
smohamedjavid authored Jul 30, 2024
1 parent 59ceddb commit 7c4c9a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/status_im/subs/profile.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

(re-frame/reg-sub
:profile/currency
:<- [:profile/profile]
(fn [{:keys [currency]}]
(or currency constants/profile-default-currency)))
(fn []
;; returns "usd" by default as the support for other currencies are in progress on Mobile
constants/profile-default-currency))

(re-frame/reg-sub
:profile/syncing-on-mobile-network?
Expand Down

0 comments on commit 7c4c9a9

Please sign in to comment.