Fix bug with estimateTime not showing "Never" when it should

This commit is contained in:
thepaperpilot 2023-04-27 22:48:40 -05:00
parent 7872cd1bc6
commit 600fa67baf

View file

@ -437,7 +437,7 @@ export function estimateTime(
const currTarget = unref(processedTarget);
if (Decimal.gte(resource.value, currTarget)) {
return "Now";
} else if (Decimal.lt(currRate, 0)) {
} else if (Decimal.lte(currRate, 0)) {
return "Never";
}
return formatTime(Decimal.sub(currTarget, resource.value).div(currRate));