1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-06 23:51:28 +01: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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;
}