Update blue_modules/currency.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Marcos Rodriguez Vélez 2024-11-03 20:15:35 -04:00 committed by GitHub
parent 4f67fa1b1b
commit 00bfe03a07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ function getCurrencyFormatter(): Intl.NumberFormat {
}
function getBTCFormatter(): Intl.NumberFormat {
if (!btcFormatter) {
if (!btcFormatter || btcFormatter.resolvedOptions().locale !== preferredFiatCurrency.locale) {
btcFormatter = new Intl.NumberFormat(preferredFiatCurrency.locale, {
minimumFractionDigits: 8,
maximumFractionDigits: 8,