This commit is contained in:
Jonas Hendrickx 2024-11-26 11:46:03 +01:00
parent a1ed915d61
commit f443708b5e
2 changed files with 2 additions and 4 deletions

View File

@ -109,9 +109,7 @@ export class SetupComponent implements OnInit, OnDestroy {
try {
this.formGroup.markAllAsTouched();
const formIsValid = this.formGroup.valid && this.manageTaxInformationComponent.touch();
if (!formIsValid) {
if (!this.manageTaxInformationComponent.validate() || !this.formGroup.valid) {
return;
}

View File

@ -51,7 +51,7 @@ export class ManageTaxInformationComponent implements OnInit, OnDestroy {
this.taxInformationUpdated.emit();
};
touch = (): boolean => {
validate = (): boolean => {
this.formGroup.markAllAsTouched();
return this.formGroup.valid;
};