From 57cc5a469256f7d6f020fd094a79798c0d682c7a Mon Sep 17 00:00:00 2001 From: Shafqat Farhan Date: Tue, 21 Sep 2021 16:58:14 +0500 Subject: [PATCH] fix: VAN-719 - Handled password field error violation (#439) --- src/register/RegistrationPage.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/register/RegistrationPage.jsx b/src/register/RegistrationPage.jsx index 78d57b41..b129c222 100644 --- a/src/register/RegistrationPage.jsx +++ b/src/register/RegistrationPage.jsx @@ -383,12 +383,11 @@ class RegistrationPage extends React.Component { } break; case 'password': + errors.password = ''; if (!value || !LETTER_REGEX.test(value) || !NUMBER_REGEX.test(value) || value.length < 8) { errors.password = intl.formatMessage(messages['password.validation.message']); } else if (payload && statusCode !== 403) { this.props.fetchRealtimeValidations(payload); - } else { - errors.password = ''; } break; case 'country':