[AC-2830] Unable to create a free organization (#9917)
* Resolve the issue free org creation * Check that the taxForm is touched
This commit is contained in:
parent
65cbcaaf04
commit
ca4ac38fcb
|
@ -86,7 +86,7 @@ export class TrialBillingStepComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
async submit(): Promise<void> {
|
async submit(): Promise<void> {
|
||||||
if (!this.taxInfoComponent.taxFormGroup.valid) {
|
if (!this.taxInfoComponent.taxFormGroup.valid && this.taxInfoComponent?.taxFormGroup.touched) {
|
||||||
this.taxInfoComponent.taxFormGroup.markAllAsTouched();
|
this.taxInfoComponent.taxFormGroup.markAllAsTouched();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,7 @@ export class PremiumComponent implements OnInit {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
submit = async () => {
|
submit = async () => {
|
||||||
if (!this.taxInfoComponent.taxFormGroup.valid) {
|
if (!this.taxInfoComponent.taxFormGroup.valid && this.taxInfoComponent?.taxFormGroup.touched) {
|
||||||
this.taxInfoComponent.taxFormGroup.markAllAsTouched();
|
this.taxInfoComponent.taxFormGroup.markAllAsTouched();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -549,7 +549,7 @@ export class OrganizationPlansComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
submit = async () => {
|
submit = async () => {
|
||||||
if (!this.taxComponent?.taxFormGroup.valid) {
|
if (!this.taxComponent?.taxFormGroup.valid && this.taxComponent?.taxFormGroup.touched) {
|
||||||
this.taxComponent?.taxFormGroup.markAllAsTouched();
|
this.taxComponent?.taxFormGroup.markAllAsTouched();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue