Add spaces in formatted time output (#509)

This commit is contained in:
phidias authored and GitHub committed 2026-10-16 19:53:29 +01:00
1 parent 4142db68cf
commit 584fc10752
1 file changed
+1 -1
+1 -1
View File
@@ -31,7 +31,7 @@ const timeStatistics = new Set(["Playtime", "AfkTime"]);
export function formatValue(name: string, value: number) {
if (timeStatistics.has(name)) {
return `${Math.floor(value / 60)}h ${value % 60}m`;
return `${Math.floor(value / 60)} h ${value % 60} m`;
}
if (name === "DistanceTravelled") {
return `${value.toLocaleString()} tiles`;