(ench): trim time, to avoid space before bracket.

This commit is contained in:
Aleksander Wilczyński 2024-08-27 09:41:51 +02:00
parent 19b1dbc0d3
commit 59e6bcfa8e
Signed by: gitea
GPG Key ID: CECFC30736A3D1C8

View File

@ -20,7 +20,7 @@ export const msToTime = (duration: number, long = false) => {
if (time.minutes()) t+= `${time.minutes()}m `;
if (time.seconds()) t+= `${time.seconds()}s`;
return `${time.humanize()} (${t})`;
return `${time.humanize()} (${t.trim() || "<1s"})`;
}