fix(console): check for initial state in contact component (#5142)

fix: check for initial state

Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
Max Peintner
2023-02-17 12:11:48 +00:00
committed by GitHub
co-authored by Livio Spring
parent fa1e6c0bb2
commit 99bb8ab771
@@ -113,7 +113,11 @@
[canWrite]="['user.write:' + user.id, 'user.write$'] | hasRole | async"
*ngIf="user?.human"
[human]="user.human"
(editType)="user.state !== UserState.USER_STATE_INITIAL ? openEditDialog($event) : resendInitEmail()"
(editType)="
user.state === UserState.USER_STATE_INITIAL && $event === EditDialogType.EMAIL
? resendInitEmail()
: openEditDialog($event)
"
(deletedPhone)="deletePhone()"
(resendEmailVerification)="resendEmailVerification()"
(resendPhoneVerification)="resendPhoneVerification()"