Correct missing test in user-edit template

This commit is contained in:
kimsible 2020-07-20 14:40:37 +02:00 committed by Chocobozzz
parent cd801c6907
commit 2821595787
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@
<input
type="text" id="email" i18n-placeholder placeholder="mail@example.com" class="form-control"
formControlName="email" [ngClass]="{ 'input-error': formErrors['email'] }"
autocomplete="off" [readonly]="user.pluginAuth !== null"
autocomplete="off" [readonly]="user && user.pluginAuth !== null"
>
<div *ngIf="formErrors.email" class="form-error">
{{ formErrors.email }}