mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-17 22:33:13 +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) {
|
export function formatValue(name: string, value: number) {
|
||||||
if (timeStatistics.has(name)) {
|
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") {
|
if (name === "DistanceTravelled") {
|
||||||
return `${value.toLocaleString()} tiles`;
|
return `${value.toLocaleString()} tiles`;
|
||||||
|
|||||||
Reference in new issue
Block a user