Fix issue with estimate time

This commit is contained in:
thepaperpilot 2023-04-27 22:54:24 -05:00
parent 4510cd0b43
commit be9b837558

View file

@ -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);