1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

Remove toLocaleString from PrettyfyLargeNumbers

This commit is contained in:
Gastón Fournier 2024-09-02 16:40:20 +02:00
parent f62dbe6917
commit e2cfd272df
No known key found for this signature in database
GPG Key ID: AF45428626E17A8E

View File

@ -30,7 +30,7 @@ export const PrettifyLargeNumber: FC<IPrettifyLargeNumberProps> = ({
let showTooltip = false;
if (value < threshold) {
prettyValue = value.toLocaleString();
prettyValue = `${value}`;
} else {
prettyValue = millify(value, { precision });
showTooltip = true;
@ -44,7 +44,7 @@ export const PrettifyLargeNumber: FC<IPrettifyLargeNumberProps> = ({
<ConditionallyRender
condition={showTooltip}
show={
<Tooltip title={value.toLocaleString()} arrow>
<Tooltip title={`${value}`} arrow>
{valueSpan}
</Tooltip>
}