-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fix new account form submission * Validate new account details are not empty * Add empty details error message * Change empty details error message to be more specific * Remove unnecessary variable * Created minimum length list for each details field * Validate account details according to the new minimum length list * Change details error message to include the minimum length required * Fix for warning changing uncontrolled input to be controlled * Revert attempted fix. Fixed by initializing fields list * Revert warning fix as per PR Comment. * Revert remove unnecessary variable as per PR Comment. * Added login fields variables as per PR Comment. * Change form validation to manual validation as per PR Comment. * Add a callback to `setLoginFields` and simplify validity check. * Fix useState callback * Rename variables inside setter to conform with `no-shadow` lint rule
- Loading branch information
1 parent
0175af0
commit 9049be2
Showing
2 changed files
with
48 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters