This commit is contained in:
Olivier Gagnon
2022-09-23 00:13:06 -04:00
parent 944ee71ab9
commit fde4e7ac38
3 changed files with 16 additions and 2 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
import { Settings } from "../Settings/Settings";
import { EqualityFunc } from "../types";
import { isString } from "./helpers/isString";
@@ -39,10 +40,10 @@ function convertTimeMsToTimeElapsedString(time: number, showMilli = false): stri
if (days > 0) {
res += `${days} days `;
}
if (hours > 0) {
if (hours > 0 || (Settings.ShowMiddleNullTimeUnit && res != "")) {
res += `${hours} hours `;
}
if (minutes > 0) {
if (minutes > 0 || (Settings.ShowMiddleNullTimeUnit && res != "")) {
res += `${minutes} minutes `;
}
res += `${seconds} seconds`;