1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-05-21 23:48:58 +01:00

Ensure 0 does not get formatted to empty string (#8971)

This commit is contained in:
Philip Allgaier
2021-04-23 09:29:03 +02:00
committed by GitHub
parent 3f21c87a3d
commit 899eab4e5c
2 changed files with 51 additions and 1 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ export const formatNumber = (
).format(Number(num));
}
}
return num ? num.toString() : "";
return num.toString();
};
/**