forked from simrail/simrail.pro
(ench): trim time, to avoid space before bracket.
This commit is contained in:
parent
19b1dbc0d3
commit
59e6bcfa8e
@ -20,7 +20,7 @@ export const msToTime = (duration: number, long = false) => {
|
|||||||
if (time.minutes()) t+= `${time.minutes()}m `;
|
if (time.minutes()) t+= `${time.minutes()}m `;
|
||||||
if (time.seconds()) t+= `${time.seconds()}s`;
|
if (time.seconds()) t+= `${time.seconds()}s`;
|
||||||
|
|
||||||
return `${time.humanize()} (${t})`;
|
return `${time.humanize()} (${t.trim() || "<1s"})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user