diff --git a/scm-ui/src/users/components/UserForm.js b/scm-ui/src/users/components/UserForm.js index a241b583c3..9bf36d19d0 100644 --- a/scm-ui/src/users/components/UserForm.js +++ b/scm-ui/src/users/components/UserForm.js @@ -61,7 +61,7 @@ class UserForm extends React.Component { return false; } - createUserComponentsAreValid = () => { + createUserComponentsAreInvalid = () => { const user = this.state.user; if (!this.props.user) { return ( @@ -74,7 +74,7 @@ class UserForm extends React.Component { } }; - editUserComponentsAreChanged = () => { + editUserComponentsAreUnchanged = () => { const user = this.state.user; if (this.props.user) { return ( @@ -91,8 +91,8 @@ class UserForm extends React.Component { isValid = () => { const user = this.state.user; return !( - this.createUserComponentsAreValid() || - this.editUserComponentsAreChanged() || + this.createUserComponentsAreInvalid() || + this.editUserComponentsAreUnchanged() || this.state.mailValidationError || this.state.displayNameValidationError || this.isFalsy(user.displayName) ||