Update pricing-tiers.tsx
This commit is contained in:
@@ -21,12 +21,10 @@ export const PricingTiers = ({
|
||||
handleAddTier,
|
||||
}: PricingTiersProps) => {
|
||||
const formatNumber = (num: number) => {
|
||||
// For price per unit, show up to 6 decimal places if needed
|
||||
return Number(num.toFixed(6)).toString();
|
||||
return Number(num.toFixed(2)).toString();
|
||||
};
|
||||
|
||||
const formatTotal = (num: number) => {
|
||||
// For total price, always show 2 decimal places
|
||||
return num.toFixed(2);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user