We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2833a7 commit 5053658Copy full SHA for 5053658
frontend/src/app/features/components/compliance-notice/compliance-notice.component.ts
@@ -159,10 +159,13 @@ export class ComplianceNoticeComponent implements OnInit {
159
}
160
161
onAlternativeDeliveryChanged(value: CheckboxChangeEvent): void {
162
- if (value.checked)
+ if (value.checked) {
163
+ this.hostEmailControl.setValue('');
164
this.hostEmailControl.removeValidators([Validators.required]);
- else
165
+ }
166
+ else {
167
this.hostEmailControl.addValidators([Validators.required]);
168
169
170
this.hostEmailControl.updateValueAndValidity();
171
this.myForm.updateValueAndValidity();
0 commit comments