Skip to content

Commit fb75960

Browse files
committed
fix starter premium 6 month preview cost being wrong
1 parent e66a36a commit fb75960

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

components/Premium/PremiumPurchaseWizard/Steps/DurationSelectionStep.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ export default function DurationSelectionStep({
4848
const prices = SUBSCRIPTION_PRICES[tierKey] || { monthly: 0, quarterly: 0, yearly: 0 }
4949

5050
let monthlyPrice = prices.monthly
51-
if (duration === Duration.QUARTER) {
51+
if (selectedTier === PremiumTier.STARTER && duration === Duration.QUARTER) {
52+
return getPriceWithVAT(9.69) / 6
53+
} else if (duration === Duration.QUARTER) {
5254
monthlyPrice = prices.quarterly / 3 // 3 months
5355
} else if (duration === Duration.YEARLY) {
5456
monthlyPrice = prices.yearly / 12 // 12 months
@@ -107,7 +109,11 @@ export default function DurationSelectionStep({
107109
<small className={styles.recommendation}>Best Value</small>
108110
) : null}
109111
<div className={styles.monthlyPrice}>
110-
<small>~€{roundUpToCent(getMonthlyPrice(opt.value)).toFixed(2)}/month</small>
112+
<small>
113+
{selectedTier === PremiumTier.STARTER && opt.value === Duration.QUARTER
114+
? `~€${roundUpToCent(getMonthlyPrice(opt.value)).toFixed(2)}${shouldIncludeVATInPrice() ? '' : ' (+VAT)'}/month`
115+
: `~€${roundUpToCent(getMonthlyPrice(opt.value)).toFixed(2)}/month`}
116+
</small>
111117
</div>
112118
</Card.Body>
113119
</Card>

0 commit comments

Comments
 (0)