-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link Cvc & Expiry recollection VM #9882
base: master
Are you sure you want to change the base?
Conversation
@@ -23,7 +30,11 @@ internal data class WalletUiState( | |||
val isExpired = card?.isExpired ?: false | |||
val requiresCvcRecollection = card?.cvcCheck?.requiresRecollection ?: false | |||
|
|||
val disableButton = isExpired || requiresCvcRecollection | |||
val isMissingExpiryDateInput = (expiryDateInput.isComplete && cvcInput.isComplete).not() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The isMissingExpiryDateInput
check appears to have an unintended dependency on cvcInput.isComplete
. For validating expiry date input, the condition should be simplified to expiryDateInput.isComplete.not()
since the CVC completion state is handled separately by isMissingCvcInput
.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expired cards requires both updated expiryDate and cvc
Diffuse output:
APK
DEX
|
Summary
Motivation
Testing
Screenshots
Changelog