Skip to content

Commit

Permalink
fix: add check ensuring afterTrialPriceStr is not null
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-anderson committed Mar 24, 2024
1 parent 212b3cf commit 1f8c415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/CheckoutPage/SubCostDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const SubCostDetails = () => {
<Text variant="body2">
{billingPeriod
? `Billed ${billingPeriod}ly`
: afterTrial
: afterTrial && afterTrialPriceStr
? `Then ${afterTrialPriceStr} per ${afterTrial.billingPeriod} thereafter`
: ""}
</Text>
Expand Down

0 comments on commit 1f8c415

Please sign in to comment.