Fix Req showing wrong value

This commit is contained in:
thepaperpilot 2022-04-10 21:53:11 -05:00
parent 3694e2be1f
commit eb434656b3

View file

@ -96,7 +96,10 @@ export function createResetButton<T extends ClickableOptions & ResetButtonOption
{resetButton.conversion.buyMax ? "Next:" : "Req:"}{" "} {resetButton.conversion.buyMax ? "Next:" : "Req:"}{" "}
{displayResource( {displayResource(
resetButton.conversion.baseResource, resetButton.conversion.baseResource,
unref(resetButton.conversion.nextAt) resetButton.conversion.buyMax ||
Decimal.neq(1, unref(resetButton.conversion.actualGain))
? unref(resetButton.conversion.nextAt)
: unref(resetButton.conversion.currentAt)
)}{" "} )}{" "}
{resetButton.conversion.baseResource.displayName} {resetButton.conversion.baseResource.displayName}
</div> </div>