Refactoring
This commit is contained in:
parent
a2d9899a46
commit
a600a5050a
@ -60,7 +60,7 @@ export class UserComponent extends EntityComponent<User> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isUserCredentialPresent(): boolean {
|
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 {
|
buildForm(entity: User): FormGroup {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user