This commit is contained in:
Maren Süwer
2019-01-31 10:37:48 +01:00
parent f6ae41069d
commit 8dc2204b3f

View File

@@ -61,7 +61,7 @@ class UserForm extends React.Component<Props, State> {
return false; return false;
} }
createUserComponentsAreValid = () => { createUserComponentsAreInvalid = () => {
const user = this.state.user; const user = this.state.user;
if (!this.props.user) { if (!this.props.user) {
return ( return (
@@ -74,7 +74,7 @@ class UserForm extends React.Component<Props, State> {
} }
}; };
editUserComponentsAreChanged = () => { editUserComponentsAreUnchanged = () => {
const user = this.state.user; const user = this.state.user;
if (this.props.user) { if (this.props.user) {
return ( return (
@@ -91,8 +91,8 @@ class UserForm extends React.Component<Props, State> {
isValid = () => { isValid = () => {
const user = this.state.user; const user = this.state.user;
return !( return !(
this.createUserComponentsAreValid() || this.createUserComponentsAreInvalid() ||
this.editUserComponentsAreChanged() || this.editUserComponentsAreUnchanged() ||
this.state.mailValidationError || this.state.mailValidationError ||
this.state.displayNameValidationError || this.state.displayNameValidationError ||
this.isFalsy(user.displayName) || this.isFalsy(user.displayName) ||