mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 07:13:32 +00:00
[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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user