Skip to content

Commit

Permalink
fix: handle 0 price when showPerMonthPrice flag is set (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbh authored Jul 26, 2024
1 parent 6a96f60 commit a6ac348
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const PricingColumnHeader = ({
: `per seat/${selectedInterval}`;

const amount = showPerMonthPrice
? selectedIntervalPricing?.amount / 12
? (selectedIntervalPricing?.amount || 0) / 12
: selectedIntervalPricing?.amount;

const actualPerMonthAmount = plan.intervals['month']?.amount || 0;
Expand Down

0 comments on commit a6ac348

Please sign in to comment.