Skip to content

Commit

Permalink
Update hideTaxString logic to handle cases where purchase price is ze…
Browse files Browse the repository at this point in the history
…ro (#97937)
  • Loading branch information
oalagial authored Jan 9, 2025
1 parent f898338 commit e6bb7ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/me/purchases/manage-purchase/purchase-meta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default function PurchaseMeta( {
: translate( 'Renewal Price' );

const hideRenewalPriceSection = isOneTimePurchase( purchase );
const hideTaxString = isIncludedWithPlan( purchase );
const hideTaxString = isIncludedWithPlan( purchase ) || purchase?.priceInteger === 0;

// To-do: There isn't currently a way to get the taxName based on the country.
// The country is not included in the purchase information envelope
Expand Down

0 comments on commit e6bb7ba

Please sign in to comment.