Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Change variable name

dominik-zeglenc9c7d13a1c06
diff --git a/saleor/static/dashboard-next/components/Percent/Percent.tsx b/saleor/static/dashboard-next/components/Percent/Percent.tsx
index d81a2db2d0..2d269b3972 100644
--- a/saleor/static/dashboard-next/components/Percent/Percent.tsx
+++ b/saleor/static/dashboard-next/components/Percent/Percent.tsx
@@ -14,14 +14,14 @@ const Percent: React.StatelessComponent<PercentProps> = ({
}) => (
<LocaleConsumer>
{locale => {
- const formatted = (amount / 100).toLocaleString(locale, {
+ const formattedAmount = (amount / 100).toLocaleString(locale, {
maximumFractionDigits: 2,
style: "percent"
});
if (typographyProps) {
- return <Typography {...typographyProps}>{formatted}</Typography>;
+ return <Typography {...typographyProps}>{formattedAmount}</Typography>;
}
- return <>{formatted}</>;
+ return <>{formattedAmount}</>;
}}
</LocaleConsumer>
);