Showing
1 changed file
with
1 additions
and
1 deletions
@@ -60,7 +60,7 @@ export class UserComponent extends EntityComponent<User> { | @@ -60,7 +60,7 @@ export class UserComponent extends EntityComponent<User> { | ||
60 | } | 60 | } |
61 | 61 | ||
62 | isUserCredentialPresent(): boolean { | 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 | buildForm(entity: User): FormGroup { | 66 | buildForm(entity: User): FormGroup { |