Format values in General Statistics

This commit is contained in:
Hermholtz
2024-12-14 15:43:12 +01:00
parent dedbadafc4
commit 2b55e56306
2 changed files with 8 additions and 8 deletions

View File

@@ -524,7 +524,7 @@ export const getObjDiff = (initialValues: any, values: any) =>
* @param num {number} to format
* @returns {string} Returns a string with a language-sensitive representation of this number
*/
export const formatNumber = (num: any) => {
export const formatNumber = (num: number): string => {
const currentLanguage = i18n.languages[0] || DEFAULT_LANGUAGE;
return num.toLocaleString(currentLanguage);
};