From 7c4c9a9fc00163af9422040403498d9598adbe7e Mon Sep 17 00:00:00 2001 From: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com> Date: Tue, 30 Jul 2024 21:03:26 +0530 Subject: [PATCH] fix_: use usd as default currency (#20916) 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 <19339952+smohamedjavid@users.noreply.github.com> --- src/status_im/subs/profile.cljs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/status_im/subs/profile.cljs b/src/status_im/subs/profile.cljs index 16ee576d8b..c7f3b26c22 100644 --- a/src/status_im/subs/profile.cljs +++ b/src/status_im/subs/profile.cljs @@ -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?