-
Notifications
You must be signed in to change notification settings - Fork 24
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
fix: saving user account info #4121
Conversation
✅ Deploy Preview for bloom-exygy-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Looks good!
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.
Love the new test! The change looks good. Just have one question on the password min-length
fix: change type of income voucher fix: test issue fix: test issue fix: build issue fix: cypress tests fix: env vars fix: rebase issues fix: rebase issues
This PR addresses metrotranscom#631
Description
This PR fixes two bugs on the user account screen:
It seemed like the problem with the first bug was that we are setting the form field defaults if the user profile is present, and when you go back in the browser, the profile is present and wasn't refetching, so I am fetching the user on page load, and after every user update I am re-setting the user object. Because I'm fetching on page load and that data is required in the UI, I pulled in our loading overlay over the card.
We were also having validation issues because we have separate forms on the page but we were not actually setting up the forms as separate as react-hook-forms expects - validation for all fields was triggering on submitting just one of them - so I separated these out into four separate forms as well.
How Can This Be Tested/Reviewed?
Follow the steps above and ensure they work!
Author Checklist:
yarn generate:client
and/or created a migration when requiredReview Process: