@@ -20,7 +20,6 @@ type CtaLink = {
2020export const BillingPricing : React . FC < BillingPricingProps > = ( {
2121 team,
2222 trialPeriodEndedAt,
23- canTrialGrowth,
2423} ) => {
2524 const validTeamPlan = getValidTeamPlan ( team ) ;
2625 const starterPlanSubscribeRoute = `/team/${ team . slug } /subscribe/plan:starter` ;
@@ -68,15 +67,15 @@ export const BillingPricing: React.FC<BillingPricingProps> = ({
6867 // free > growth
6968 case "free" : {
7069 return {
71- label : canTrialGrowth ? trialTitle : "Get started" ,
70+ label : team . growthTrialEligible ? trialTitle : "Get started" ,
7271 href : growthPlanSubscribeRoute ,
7372 } ;
7473 }
7574
7675 // starter > growth
7776 case "starter" : {
7877 return {
79- label : canTrialGrowth ? trialTitle : "Upgrade" ,
78+ label : team . growthTrialEligible ? trialTitle : "Upgrade" ,
8079 href : growthPlanSubscribeRoute ,
8180 } ;
8281 }
@@ -95,7 +94,7 @@ export const BillingPricing: React.FC<BillingPricingProps> = ({
9594 } ;
9695 }
9796 }
98- } , [ validTeamPlan , canTrialGrowth , growthPlanSubscribeRoute ] ) ;
97+ } , [ team . growthTrialEligible , validTeamPlan , growthPlanSubscribeRoute ] ) ;
9998
10099 const proCta : CtaLink | undefined = useMemo ( ( ) => {
101100 // pro > pro
@@ -147,7 +146,9 @@ export const BillingPricing: React.FC<BillingPricingProps> = ({
147146 target : growthCardCta . target ,
148147 tracking : {
149148 category : "account" ,
150- label : canTrialGrowth ? "claimGrowthTrial" : "growthPlan" ,
149+ label : team . growthTrialEligible
150+ ? "claimGrowthTrial"
151+ : "growthPlan" ,
151152 } ,
152153 variant : "default" ,
153154 hint :
@@ -157,7 +158,7 @@ export const BillingPricing: React.FC<BillingPricingProps> = ({
157158 }
158159 : undefined
159160 }
160- canTrialGrowth = { canTrialGrowth }
161+ canTrialGrowth = { team . growthTrialEligible || false }
161162 // upsell growth plan if user is on free plan
162163 highlighted = { validTeamPlan === "free" }
163164 />
0 commit comments