From 136ec6373ed38fdd956feb799743030a100433e9 Mon Sep 17 00:00:00 2001 From: Leandro Boscariol Date: Fri, 26 Nov 2021 12:31:24 -0800 Subject: [PATCH 1/2] Turning on thousand separator for FIAT values --- .../CurrencyInputPanel/FiatValue/FiatValueMod.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/custom/components/CurrencyInputPanel/FiatValue/FiatValueMod.tsx b/src/custom/components/CurrencyInputPanel/FiatValue/FiatValueMod.tsx index cb851cbb1..c3f41312a 100644 --- a/src/custom/components/CurrencyInputPanel/FiatValue/FiatValueMod.tsx +++ b/src/custom/components/CurrencyInputPanel/FiatValue/FiatValueMod.tsx @@ -34,7 +34,11 @@ export function FiatValue({ ≈ $ ) : ( From 8780f213aee58bff8bfe5f01d26bdf4e9a0a879f Mon Sep 17 00:00:00 2001 From: Leandro Boscariol Date: Fri, 26 Nov 2021 12:51:13 -0800 Subject: [PATCH 2/2] Make it also locale aware --- .../components/CurrencyInputPanel/FiatValue/FiatValueMod.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/custom/components/CurrencyInputPanel/FiatValue/FiatValueMod.tsx b/src/custom/components/CurrencyInputPanel/FiatValue/FiatValueMod.tsx index c3f41312a..517ffd45d 100644 --- a/src/custom/components/CurrencyInputPanel/FiatValue/FiatValueMod.tsx +++ b/src/custom/components/CurrencyInputPanel/FiatValue/FiatValueMod.tsx @@ -37,6 +37,7 @@ export function FiatValue({ text={ formatSmart(fiatValue, FIAT_PRECISION, { thousandSeparator: true, + isLocaleAware: true, }) /* fiatValue?.toSignificant(6, { groupSeparator: ',' }) */ } />