chore(ns.tFormat): Remove incorrectly placed 's'

This commit is contained in:
LJNeon 2022-09-23 07:59:50 -07:00
parent b8f8246294
commit b1c5ddb211
No known key found for this signature in database
GPG Key ID: 837C6B23D22030BE

@ -38,15 +38,15 @@ function convertTimeMsToTimeElapsedString(time: number, showMilli = false): stri
let res = "";
if (days > 0) {
res += `${days} days `;
res += `${days} day${days === 1 ? "" : "s"} `;
}
if (hours > 0 || (Settings.ShowMiddleNullTimeUnit && res != "")) {
res += `${hours} hours `;
res += `${hours} hour${hours === 1 ? "" : "s"} `;
}
if (minutes > 0 || (Settings.ShowMiddleNullTimeUnit && res != "")) {
res += `${minutes} minutes `;
res += `${minutes} minute${minutes === 1 ? "" : "s"} `;
}
res += `${seconds} seconds`;
res += `${seconds} second${!showMilli && secTruncMinutes === 1 ? "" : "s"}`;
return res;
}