Skip to content

Commit

Permalink
[PM-17064] Prevent error being thrown when taxInformation is undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashendrickx committed Jan 15, 2025
1 parent 55e4b5e commit 7770938
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7770938

Please sign in to comment.