Various improvements

This commit is contained in:
Andras Schmelczer 2023-05-28 22:28:44 +01:00
commit abf3803cdc
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
15 changed files with 283 additions and 250 deletions

View file

@ -7,5 +7,5 @@ export const formatNumber = (value: number, unit = ''): string => {
return `${(value / 1e3).toFixed(1)} thousand ${unit}`;
}
return `${value === Math.floor(value) ? value : value.toFixed(2)}${unit}`;
return `${value === Math.floor(value) ? value : value.toFixed(2)} ${unit}`;
};