Refine payments formatting.
This commit is contained in:
parent
4a79019e83
commit
d3633cc0c7
@ -35,9 +35,17 @@ public extension PaymentsFormat {
|
||||
return numberFormatter
|
||||
}
|
||||
|
||||
private static let mobFormatShort: NumberFormatter = {
|
||||
buildMobFormatter(isShortForm: true)
|
||||
}()
|
||||
|
||||
private static let mobFormatLong: NumberFormatter = {
|
||||
buildMobFormatter(isShortForm: false)
|
||||
}()
|
||||
|
||||
// Used for formatting MOB (not picoMob) values for display.
|
||||
private static func mobFormat(isShortForm: Bool, locale: Locale? = nil) -> NumberFormatter {
|
||||
buildMobFormatter(isShortForm: isShortForm, locale: locale)
|
||||
private static func mobFormat(isShortForm: Bool) -> NumberFormatter {
|
||||
isShortForm ? mobFormatShort : mobFormatLong
|
||||
}
|
||||
|
||||
// Used for formatting decimal numbers in the
|
||||
|
||||
@ -138,7 +138,6 @@ public class PaymentsImpl: NSObject, PaymentsSwift {
|
||||
owsFailDebug("Missing countryCode: \(localNumber).")
|
||||
return false
|
||||
}
|
||||
// return true
|
||||
let validCountryCodes: [Int] = [
|
||||
// France
|
||||
33,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user