Skip to content

Commit 5b2b28a

Browse files
authored
[WCiOS17] Update CurrencyCode to use Currency.isoCurrencies (#15992)
2 parents a150143 + 2b799a1 commit 5b2b28a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/Sources/Hardware/CardReader/CurrencyCode.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ public struct CurrencyCode {
1616

1717
public var wrappedValue: String {
1818
get {
19-
guard Locale.isoCurrencyCodes.map({ $0.uppercased() }).contains(value.uppercased()) else {
19+
guard Locale.Currency.isoCurrencies.map({ $0.identifier.uppercased() }).contains(value.uppercased()) else {
2020
return ""
2121
}
22-
2322
return value.lowercased()
2423
}
2524
set {

0 commit comments

Comments
 (0)