fix(dashboard): format currency better on all places
This commit is contained in:
@@ -33,7 +33,7 @@ export const formatCurrency =
|
|||||||
style: 'currency',
|
style: 'currency',
|
||||||
currency: currency,
|
currency: currency,
|
||||||
minimumFractionDigits: 0,
|
minimumFractionDigits: 0,
|
||||||
maximumFractionDigits: 0,
|
maximumFractionDigits: 1,
|
||||||
}).format(amount);
|
}).format(amount);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,8 @@ export function PricingSlider() {
|
|||||||
format={{
|
format={{
|
||||||
style: 'currency',
|
style: 'currency',
|
||||||
currency: 'USD',
|
currency: 'USD',
|
||||||
maximumFractionDigits: 0,
|
minimumFractionDigits: 0,
|
||||||
|
maximumFractionDigits: 1,
|
||||||
}}
|
}}
|
||||||
locales={'en-US'}
|
locales={'en-US'}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user