From aad5b9dc540bcc07336971523a0db481cf96e685 Mon Sep 17 00:00:00 2001 From: Connor Yoh Date: Mon, 24 Nov 2025 15:00:46 +0000 Subject: [PATCH] Make sure prices aren't rounded down --- .../shared/config/configSections/plan/PlanCard.tsx | 9 ++++++--- .../shared/stripeCheckout/utils/pricingUtils.ts | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/src/proprietary/components/shared/config/configSections/plan/PlanCard.tsx b/frontend/src/proprietary/components/shared/config/configSections/plan/PlanCard.tsx index 02b457a42a..1ba45cdf60 100644 --- a/frontend/src/proprietary/components/shared/config/configSections/plan/PlanCard.tsx +++ b/frontend/src/proprietary/components/shared/config/configSections/plan/PlanCard.tsx @@ -119,11 +119,14 @@ const PlanCard: React.FC = ({ planGroup, isCurrentTier, isDowngra {/* Price */} {isEnterprise && displaySeatPrice !== undefined ? ( <> - - {displayCurrency}{displaySeatPrice}/seat + + {displayCurrency}{displaySeatPrice.toFixed(2)} + + + {t('plan.perSeat', '/seat')} - {t('plan.perMonth', '/month')} + Server plan + {t('plan.perMonth', '/month')} {t('plan.withServer', '+ Server Plan')} ) : ( diff --git a/frontend/src/proprietary/components/shared/stripeCheckout/utils/pricingUtils.ts b/frontend/src/proprietary/components/shared/stripeCheckout/utils/pricingUtils.ts index 09248f873b..9fc5c8416f 100644 --- a/frontend/src/proprietary/components/shared/stripeCheckout/utils/pricingUtils.ts +++ b/frontend/src/proprietary/components/shared/stripeCheckout/utils/pricingUtils.ts @@ -12,7 +12,7 @@ export interface PriceCalculation { * Calculate monthly equivalent from yearly price */ export function calculateMonthlyEquivalent(yearlyPrice: number): number { - return Math.round(yearlyPrice / 12); + return yearlyPrice / 12; } /**