From ff16397cc7542ccae39477b9559b54c9f606cfea Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Thu, 27 Apr 2023 22:48:40 -0500 Subject: [PATCH] Fix bug with estimateTime not showing "Never" when it should --- src/data/common.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/common.tsx b/src/data/common.tsx index 2430c07..8cc7853 100644 --- a/src/data/common.tsx +++ b/src/data/common.tsx @@ -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));