Make sure prices aren't rounded down

This commit is contained in:
Connor Yoh
2025-11-24 15:00:46 +00:00
parent 601a17f1e6
commit aad5b9dc54
2 changed files with 7 additions and 4 deletions
@@ -119,11 +119,14 @@ const PlanCard: React.FC<PlanCardProps> = ({ planGroup, isCurrentTier, isDowngra
{/* Price */}
{isEnterprise && displaySeatPrice !== undefined ? (
<>
<Text size="2.25rem" fw={600} style={{ lineHeight: 1 }}>
{displayCurrency}{displaySeatPrice}/seat
<Text span size="2.25rem" fw={600} style={{ lineHeight: 1 }}>
{displayCurrency}{displaySeatPrice.toFixed(2)}
</Text>
<Text span size="1.5rem" c="dimmed" mt="xs">
{t('plan.perSeat', '/seat')}
</Text>
<Text size="sm" c="dimmed" mt="xs">
{t('plan.perMonth', '/month')} + Server plan
{t('plan.perMonth', '/month')} {t('plan.withServer', '+ Server Plan')}
</Text>
</>
) : (
@@ -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;
}
/**