refactor
This commit is contained in:
parent
a1ed915d61
commit
f443708b5e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ export class ManageTaxInformationComponent implements OnInit, OnDestroy {
|
|||
this.taxInformationUpdated.emit();
|
||||
};
|
||||
|
||||
touch = (): boolean => {
|
||||
validate = (): boolean => {
|
||||
this.formGroup.markAllAsTouched();
|
||||
return this.formGroup.valid;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue