Fixed independent conversions showing values over 1 when buyMax is false

This commit is contained in:
thepaperpilot 2022-04-10 23:02:15 -05:00
parent 78262996ad
commit 52864964a2

View file

@ -97,7 +97,7 @@ export function createResetButton<T extends ClickableOptions & ResetButtonOption
{displayResource(
resetButton.conversion.baseResource,
resetButton.conversion.buyMax ||
Decimal.neq(1, unref(resetButton.conversion.actualGain))
Decimal.floor(unref(resetButton.conversion.actualGain)).neq(1)
? unref(resetButton.conversion.nextAt)
: unref(resetButton.conversion.currentAt)
)}{" "}