Skip to content

Commit

Permalink
ignore case when checking equality
Browse files Browse the repository at this point in the history
  • Loading branch information
saperi22 committed Jan 17, 2025
1 parent 402d25a commit 1c8aa0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ enum class PayPalPaymentIntent(internal val stringValue: String) {
@JvmStatic
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
fun fromString(string: String?): PayPalPaymentIntent? {
return PayPalPaymentIntent.values().firstOrNull { it.stringValue == string }
return entries.firstOrNull { it.stringValue.equals(string, ignoreCase = true) }
}
}
}

0 comments on commit 1c8aa0f

Please sign in to comment.