Skip to content

Commit 2b799a1

Browse files
committed
restore uppercase in both ends of currency value comparison
1 parent 56ffb60 commit 2b799a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/Sources/Hardware/CardReader/CurrencyCode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public struct CurrencyCode {
1616

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

0 commit comments

Comments
 (0)