Skip to content

Commit

Permalink
refactor(password-form-val): Removed redundant if check
Browse files Browse the repository at this point in the history
  • Loading branch information
mananjadhav committed Aug 12, 2021
1 parent 7914c67 commit a2c7678
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pages/settings/PasswordPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ class PasswordPage extends Component {
stateToUpdate.shouldShowPasswordConfirmError = false;
}

if (!isEmpty(stateToUpdate)) {
this.setState(stateToUpdate);
}
this.setState(stateToUpdate);
}

onBlurConfirmPassword() {
Expand Down

0 comments on commit a2c7678

Please sign in to comment.