1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 15:23:33 +00:00

[PM-17064] Prevent error being thrown when taxInformation is undefined. (#12884)

This commit is contained in:
Jonas Hendrickx
2025-01-15 16:05:31 +01:00
committed by GitHub
parent 55e4b5ee09
commit ee6822c00d

View File

@@ -1062,7 +1062,11 @@ export class ChangePlanDialogComponent implements OnInit, OnDestroy {
}
private refreshSalesTax(): void {
if (!this.taxInformation.country || !this.taxInformation.postalCode) {
if (
this.taxInformation === undefined ||
!this.taxInformation.country ||
!this.taxInformation.postalCode
) {
return;
}