diff --git a/scm-ui/src/users/components/SetUserPassword.js b/scm-ui/src/users/components/SetUserPassword.js index a4a91c4083..19872cb9a2 100644 --- a/scm-ui/src/users/components/SetUserPassword.js +++ b/scm-ui/src/users/components/SetUserPassword.js @@ -40,7 +40,7 @@ class SetUserPassword extends React.Component { }; } - isValid = () => { + passwordIsValid = () => { return !( this.state.validatePasswordError || this.state.passwordValidationError ); @@ -74,9 +74,8 @@ class SetUserPassword extends React.Component { }; submit = (event: Event) => { - //TODO: set loading event.preventDefault(); - if (this.isValid()) { + if (this.passwordIsValid()) { const { user } = this.props; const { password } = this.state; this.setLoadingState(); @@ -132,7 +131,7 @@ class SetUserPassword extends React.Component { helpText={t("help.passwordConfirmHelpText")} />