From a2c76789deea4096bd7d777dc537c1e63f917d40 Mon Sep 17 00:00:00 2001 From: Manan Jadhav Date: Fri, 13 Aug 2021 00:31:20 +0530 Subject: [PATCH] refactor(password-form-val): Removed redundant if check --- src/pages/settings/PasswordPage.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/settings/PasswordPage.js b/src/pages/settings/PasswordPage.js index 2880fd19ea1..b1febd78bfa 100755 --- a/src/pages/settings/PasswordPage.js +++ b/src/pages/settings/PasswordPage.js @@ -75,9 +75,7 @@ class PasswordPage extends Component { stateToUpdate.shouldShowPasswordConfirmError = false; } - if (!isEmpty(stateToUpdate)) { - this.setState(stateToUpdate); - } + this.setState(stateToUpdate); } onBlurConfirmPassword() {