From dfde22116e0a02cf3bc777dbd43dc69f1d250077 Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Tue, 22 Oct 2019 17:08:31 -0400 Subject: [PATCH] Fix #1767: Return missing decimal points while in JP region --- BraveRewardsUI/Extensions/BraveLedgerExtensions.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/BraveRewardsUI/Extensions/BraveLedgerExtensions.swift b/BraveRewardsUI/Extensions/BraveLedgerExtensions.swift index 6eed4f8702e..b2c72d8c885 100644 --- a/BraveRewardsUI/Extensions/BraveLedgerExtensions.swift +++ b/BraveRewardsUI/Extensions/BraveLedgerExtensions.swift @@ -31,6 +31,7 @@ extension BraveLedger { let currencyFormatter = NumberFormatter() currencyFormatter.currencySymbol = "" currencyFormatter.numberStyle = .currency + currencyFormatter.locale = Locale(identifier: "en_US") let valueString = currencyFormatter.string(from: NSNumber(value: amount * conversionRate)) ?? "0.00" if includeCurrencyCode { return "\(valueString) \(currencyCode)"