Skip to content

Commit

Permalink
[PM-10026] [Defect] Zip code is not being enforced when subscribing i…
Browse files Browse the repository at this point in the history
…n Password Manager (#10446)

* resolve the postal code error

* Resolve the issue if licence is uploaded

* resolve the postal code issue on selfhost
  • Loading branch information
cyprain-okeke authored Aug 12, 2024
1 parent 0b5afa6 commit cd7aaac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions apps/web/src/app/billing/individual/premium.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ export class PremiumComponent implements OnInit {
}
}
submit = async () => {
if (!this.taxInfoComponent?.taxFormGroup.valid && this.taxInfoComponent?.taxFormGroup.touched) {
this.taxInfoComponent.taxFormGroup.markAllAsTouched();
return;
if (this.taxInfoComponent) {
if (!this.taxInfoComponent?.taxFormGroup.valid) {
this.taxInfoComponent.taxFormGroup.markAllAsTouched();
return;
}
}
this.licenseForm.markAllAsTouched();
this.addonForm.markAllAsTouched();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,11 @@ export class OrganizationPlansComponent implements OnInit, OnDestroy {
}

submit = async () => {
if (!this.taxComponent?.taxFormGroup.valid && this.taxComponent?.taxFormGroup.touched) {
this.taxComponent?.taxFormGroup.markAllAsTouched();
return;
if (this.taxComponent) {
if (!this.taxComponent?.taxFormGroup.valid) {
this.taxComponent?.taxFormGroup.markAllAsTouched();
return;
}
}

if (this.singleOrgPolicyBlock) {
Expand Down

0 comments on commit cd7aaac

Please sign in to comment.