Commit a600a5050a33537f3d74c8f1f320c37da2edc26e

Authored by Andrew Volostnykh
1 parent a2d9899a

Refactoring

... ... @@ -60,7 +60,7 @@ export class UserComponent extends EntityComponent<User> {
60 60 }
61 61
62 62 isUserCredentialPresent(): boolean {
63   - return !(!this.entity || !this.entity.additionalInfo || isUndefined(this.entity.additionalInfo.userCredentialsEnabled));
  63 + return this.entity && this.entity.additionalInfo && isDefinedAndNotNull(this.entity.additionalInfo.userCredentialsEnabled);
64 64 }
65 65
66 66 buildForm(entity: User): FormGroup {
... ...