From 1f8c4153a4aa43f318128e45a4319fbb7f3243a4 Mon Sep 17 00:00:00 2001 From: trevor-anderson Date: Sun, 24 Mar 2024 11:22:58 -0400 Subject: [PATCH] fix: add check ensuring afterTrialPriceStr is not null --- src/pages/CheckoutPage/SubCostDetails.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/CheckoutPage/SubCostDetails.tsx b/src/pages/CheckoutPage/SubCostDetails.tsx index a6d69a46..c9be4dd9 100644 --- a/src/pages/CheckoutPage/SubCostDetails.tsx +++ b/src/pages/CheckoutPage/SubCostDetails.tsx @@ -56,7 +56,7 @@ export const SubCostDetails = () => { {billingPeriod ? `Billed ${billingPeriod}ly` - : afterTrial + : afterTrial && afterTrialPriceStr ? `Then ${afterTrialPriceStr} per ${afterTrial.billingPeriod} thereafter` : ""}