Update pricing-tiers.tsx
This commit is contained in:
@@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user