FIX: Complication was showing cents.

This commit is contained in:
marcosrdz 2021-04-22 23:55:05 -04:00
parent 43d071f86b
commit f48202481e
2 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,6 @@ var numberFormatter: NumberFormatter {
formatter.numberStyle = .decimal
formatter.maximumFractionDigits = 0
formatter.locale = Locale.current
formatter.groupingSeparator = " "
return formatter
}

View File

@ -27,6 +27,7 @@ struct WidgetDataStore: Codable {
let numberFormatter = NumberFormatter()
numberFormatter.locale = Locale(identifier: WidgetAPI.getUserPreferredCurrencyLocale())
numberFormatter.numberStyle = .currency
numberFormatter.usesSignificantDigits = true
numberFormatter.maximumFractionDigits = 0
numberFormatter.minimumFractionDigits = 0
numberFormatter.currencySymbol = ""