Refactoring

This commit is contained in:
Andrew Volostnykh 2021-03-01 19:30:56 +02:00
parent a2d9899a46
commit a600a5050a

View File

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