This commit is contained in:
Gaurang Tandon 2019-03-21 03:23:03 +05:30 committed by Cassie Tarakajian
parent 98d7933dee
commit 2c876cda45

View file

@ -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;