Don't show NaN as formatted time

This commit is contained in:
Ajay Ramachandran 2020-08-02 14:38:50 -04:00
parent 3a49eda47f
commit e349ac8e33

View file

@ -1604,5 +1604,5 @@ function showTimeWithoutSkips(allSponsorTimes): void {
display.appendChild(duration); display.appendChild(duration);
} }
duration.innerText = (skipDuration <= 0 || isNaN(skipDuration)) ? "" : " ("+formatedTime+")"; duration.innerText = (skipDuration <= 0 || isNaN(skipDuration) || formatedTime.includes("NaN")) ? "" : " ("+formatedTime+")";
} }