Set default email value programmatically in appeal form and remove inline default logic.

This commit is contained in:
2025-08-24 02:43:49 +02:00
parent c75f0cdb15
commit cad574b8fb
2 changed files with 7 additions and 3 deletions
@@ -79,7 +79,12 @@ export class AppealComponent implements OnInit, OnDestroy, AfterViewInit {
this.emailIsValid.set(false);
}
});
computed(() => {
if (this.verifiedEmails().length > 0) {
this.form.get('email')?.setValue(this.verifiedEmails()[0]);
this.emailIsValid.set(true);
}
});
}
ngOnInit() {