1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-11 10:10:25 +01:00

[PM-10026] [Defect] Zip code is not being enforced when subscribing in Password Manager (#10446)

* resolve the postal code error

* Resolve the issue if licence is uploaded

* resolve the postal code issue on selfhost
This commit is contained in:
cyprain-okeke 2024-08-12 16:01:19 +01:00 committed by GitHub
parent 0b5afa6252
commit cd7aaacfd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 6 deletions

View File

@ -65,9 +65,11 @@ export class PremiumComponent implements OnInit {
} }
} }
submit = async () => { submit = async () => {
if (!this.taxInfoComponent?.taxFormGroup.valid && this.taxInfoComponent?.taxFormGroup.touched) { if (this.taxInfoComponent) {
this.taxInfoComponent.taxFormGroup.markAllAsTouched(); if (!this.taxInfoComponent?.taxFormGroup.valid) {
return; this.taxInfoComponent.taxFormGroup.markAllAsTouched();
return;
}
} }
this.licenseForm.markAllAsTouched(); this.licenseForm.markAllAsTouched();
this.addonForm.markAllAsTouched(); this.addonForm.markAllAsTouched();

View File

@ -554,9 +554,11 @@ export class OrganizationPlansComponent implements OnInit, OnDestroy {
} }
submit = async () => { submit = async () => {
if (!this.taxComponent?.taxFormGroup.valid && this.taxComponent?.taxFormGroup.touched) { if (this.taxComponent) {
this.taxComponent?.taxFormGroup.markAllAsTouched(); if (!this.taxComponent?.taxFormGroup.valid) {
return; this.taxComponent?.taxFormGroup.markAllAsTouched();
return;
}
} }
if (this.singleOrgPolicyBlock) { if (this.singleOrgPolicyBlock) {