mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-22 00:21:31 +00:00
Fix bug with estimateTime not showing "Never" when it should
This commit is contained in:
parent
81058e10b4
commit
ff16397cc7
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ export function estimateTime(
|
||||||
const currTarget = unref(processedTarget);
|
const currTarget = unref(processedTarget);
|
||||||
if (Decimal.gte(resource.value, currTarget)) {
|
if (Decimal.gte(resource.value, currTarget)) {
|
||||||
return "Now";
|
return "Now";
|
||||||
} else if (Decimal.lt(currRate, 0)) {
|
} else if (Decimal.lte(currRate, 0)) {
|
||||||
return "Never";
|
return "Never";
|
||||||
}
|
}
|
||||||
return formatTime(Decimal.sub(currTarget, resource.value).div(currRate));
|
return formatTime(Decimal.sub(currTarget, resource.value).div(currRate));
|
||||||
|
|
Loading…
Reference in a new issue