Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #1767: Return missing decimal points while in JP region
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehickinson committed Oct 22, 2019
1 parent db9a63d commit dfde221
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BraveRewardsUI/Extensions/BraveLedgerExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit dfde221

Please sign in to comment.