Skip to content
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

chore(wire): use form state to allow user to proceed #6278

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

mperdomo-bc
Copy link
Collaborator

No description provided.

jjBlockchain
jjBlockchain previously approved these changes Feb 8, 2024
@@ -76,7 +60,7 @@ const EnterIntermediaryBank = ({ onClickBack, onNextStep }: StepProps) => {
data-e2e='intermediaryRoutingNumber'
name='intermediaryRoutingNumber'
noLastPass
validate={[required, validRoutingNumber, onlyNumbers]}
validate={[required, onlyNumbers, validRoutingNumber]}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 thank you for making this alphabetical order

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It really was because redux-form run this in order, and I'd first check that this is all numbers and then valid length, but that's a bonus

const handleNext = () => {
if (disabled) return undefined
if (invalid) return undefined
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could just write return instead return undefined

@mperdomo-bc mperdomo-bc merged commit e54ce25 into development Feb 15, 2024
1 check passed
@mperdomo-bc mperdomo-bc deleted the wire-bank-form-errors-refactor branch February 15, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants