Skip to content

Commit a53347c

Browse files
committed
Match pricing page comparison plan CTA to your plan, if it exists
Without this, it was always showing the monthly CTA, which is fine if you are a monthly subscriber or you don't have a plan, but means if you have an annual plan then the pricing comparison upsells you to monthly which makes no sense.
1 parent 2d30ebc commit a53347c

File tree

1 file changed

+5
-1
lines changed
  • src/components/sections/pricing/comparison/components/heading-plan

1 file changed

+5
-1
lines changed

src/components/sections/pricing/comparison/components/heading-plan/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ export const HeadingPlan = observer(({ id, title, downloadButton }: HeadingPlanP
1717
<Heading as="h3" fontSize="xs" color="lightGrey" textAlign="center">
1818
{title}
1919
</Heading>
20-
{getPlanCTA(id, accountStore, 'monthly')}
20+
{getPlanCTA(
21+
id,
22+
accountStore,
23+
accountStore.subscription?.paidCycle ?? 'monthly'
24+
)}
2125
</StyledHeadingPlanWrapper>
2226
);
2327
});

0 commit comments

Comments
 (0)