Skip to content

Commit

Permalink
Match pricing page comparison plan CTA to your plan, if it exists
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pimterry committed Dec 5, 2024
1 parent 2d30ebc commit a53347c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export const HeadingPlan = observer(({ id, title, downloadButton }: HeadingPlanP
<Heading as="h3" fontSize="xs" color="lightGrey" textAlign="center">
{title}
</Heading>
{getPlanCTA(id, accountStore, 'monthly')}
{getPlanCTA(
id,
accountStore,
accountStore.subscription?.paidCycle ?? 'monthly'
)}
</StyledHeadingPlanWrapper>
);
});

0 comments on commit a53347c

Please sign in to comment.