only allow to add user if mail is set - backend throws error if mail is not set

This commit is contained in:
Maren Süwer
2018-11-15 10:05:11 +01:00
parent f742ecef93
commit ae16482e61

View File

@@ -73,7 +73,8 @@ class UserForm extends React.Component<Props, State> {
this.state.passwordConfirmationError ||
this.state.displayNameValidationError ||
this.isFalsy(user.name) ||
this.isFalsy(user.displayName)
this.isFalsy(user.displayName) ||
this.isFalsy(user.mail)
);
};