mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00: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:
@@ -65,10 +65,12 @@ export class PremiumComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
submit = async () => {
|
submit = async () => {
|
||||||
if (!this.taxInfoComponent?.taxFormGroup.valid && this.taxInfoComponent?.taxFormGroup.touched) {
|
if (this.taxInfoComponent) {
|
||||||
|
if (!this.taxInfoComponent?.taxFormGroup.valid) {
|
||||||
this.taxInfoComponent.taxFormGroup.markAllAsTouched();
|
this.taxInfoComponent.taxFormGroup.markAllAsTouched();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.licenseForm.markAllAsTouched();
|
this.licenseForm.markAllAsTouched();
|
||||||
this.addonForm.markAllAsTouched();
|
this.addonForm.markAllAsTouched();
|
||||||
if (this.selfHosted) {
|
if (this.selfHosted) {
|
||||||
|
|||||||
@@ -554,10 +554,12 @@ export class OrganizationPlansComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
submit = async () => {
|
submit = async () => {
|
||||||
if (!this.taxComponent?.taxFormGroup.valid && this.taxComponent?.taxFormGroup.touched) {
|
if (this.taxComponent) {
|
||||||
|
if (!this.taxComponent?.taxFormGroup.valid) {
|
||||||
this.taxComponent?.taxFormGroup.markAllAsTouched();
|
this.taxComponent?.taxFormGroup.markAllAsTouched();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (this.singleOrgPolicyBlock) {
|
if (this.singleOrgPolicyBlock) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user