From be9b837558e08d1bfcfc1c292c5c2bb2b9c921f0 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Thu, 27 Apr 2023 22:54:24 -0500 Subject: [PATCH] Fix issue with estimate time --- src/data/planes.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/data/planes.tsx b/src/data/planes.tsx index dba4e7a..d2d71b5 100644 --- a/src/data/planes.tsx +++ b/src/data/planes.tsx @@ -129,10 +129,9 @@ export function createPlane(id: string, tier: Resources, seed: number) { description } })); + const eta = estimateTime(resource, computedResourceGain, cost); addTooltip(upgrade, { - display: upgrade.bought.value - ? "" - : estimateTime(resource, computedResourceGain, cost), + display: () => (upgrade.bought.value ? "" : eta.value), direction: Direction.Down }); upgrades.push(upgrade);