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:
parent
f62dbe6917
commit
e2cfd272df
@ -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>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user