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';
|
errors.confirmPassword = 'Please enter a password confirmation';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (formProps.password !== formProps.confirmPassword) {
|
if (formProps.password !== formProps.confirmPassword && formProps.confirmPassword) {
|
||||||
errors.password = 'Passwords must match';
|
errors.confirmPassword = 'Passwords must match';
|
||||||
}
|
}
|
||||||
|
|
||||||
return errors;
|
return errors;
|
||||||
|
|
Loading…
Reference in a new issue