Update pricing-tiers.tsx

This commit is contained in:
NotII
2025-02-16 17:26:50 +00:00
parent 62e2602d28
commit ac2be9df4a

View File

@@ -21,12 +21,10 @@ export const PricingTiers = ({
handleAddTier, handleAddTier,
}: PricingTiersProps) => { }: PricingTiersProps) => {
const formatNumber = (num: number) => { const formatNumber = (num: number) => {
// For price per unit, show up to 6 decimal places if needed return Number(num.toFixed(2)).toString();
return Number(num.toFixed(6)).toString();
}; };
const formatTotal = (num: number) => { const formatTotal = (num: number) => {
// For total price, always show 2 decimal places
return num.toFixed(2); return num.toFixed(2);
}; };