From 2c876cda45683e342612cbfcedd80ba96cf497b3 Mon Sep 17 00:00:00 2001 From: Gaurang Tandon <1gaurangtandon@gmail.com> Date: Thu, 21 Mar 2019 03:23:03 +0530 Subject: [PATCH] fixes #906 (#931) --- client/utils/reduxFormUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/utils/reduxFormUtils.js b/client/utils/reduxFormUtils.js index 0f822b9b..cbf1ef2e 100644 --- a/client/utils/reduxFormUtils.js +++ b/client/utils/reduxFormUtils.js @@ -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;