From 4086622647d1843aa0e78ed2e4d20ca714c80582 Mon Sep 17 00:00:00 2001 From: Philipp Czora Date: Tue, 6 Nov 2018 15:25:49 +0100 Subject: [PATCH] Renamed function for clarity --- scm-ui/src/users/components/SetUserPassword.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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")} />