parent
98d7933dee
commit
2c876cda45
1 changed files with 2 additions and 2 deletions
|
@ -73,8 +73,8 @@ export function validateSignup(formProps) {
|
|||
errors.confirmPassword = 'Please enter a password confirmation';
|
||||
}
|
||||
|
||||
if (formProps.password !== formProps.confirmPassword) {
|
||||
errors.password = 'Passwords must match';
|
||||
if (formProps.password !== formProps.confirmPassword && formProps.confirmPassword) {
|
||||
errors.confirmPassword = 'Passwords must match';
|
||||
}
|
||||
|
||||
return errors;
|
||||
|
|
Loading…
Reference in a new issue