Skip to content

Commit

Permalink
correctly show discounted for only yearly
Browse files Browse the repository at this point in the history
  • Loading branch information
ButteryCrumpet authored and Rokt33r committed Jul 20, 2022
1 parent 3bd1b58 commit 70d72e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cloud/components/Subscription/SubscriptionPlanTables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const SubscriptionPlanTables = ({
<SubscriptionPlanHeader
period={selectedPeriod}
plan='standard'
discounted={false}
discounted={discounted && selectedPeriod === 'yearly'}
/>
<div className='plan__item__footer'>
{selectedPlan === 'standard' ? (
Expand Down Expand Up @@ -97,7 +97,7 @@ const SubscriptionPlanTables = ({
<SubscriptionPlanHeader
period={selectedPeriod}
plan='pro'
discounted={discounted}
discounted={discounted && selectedPeriod === 'yearly'}
/>
<div className='plan__item__footer'>
{selectedPlan === 'pro' ? (
Expand Down

0 comments on commit 70d72e9

Please sign in to comment.