mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-11 15:54:52 +09:00
Add spaces in formatted time output (#509)
This commit is contained in:
1 parent
4142db68cf
commit
584fc10752
1 file changed
+1
-1
@@ -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`;
|
||||
|
||||
Reference in new issue
Block a user