Removed v-show

This commit is contained in:
thepaperpilot 2022-06-07 19:07:04 -05:00
parent 9370b0ed6f
commit 8fce6ac23e

View file

@ -92,18 +92,20 @@ export function createResetButton<T extends ClickableOptions & ResetButtonOption
)} )}
</b>{" "} </b>{" "}
{resetButton.conversion.gainResource.displayName} {resetButton.conversion.gainResource.displayName}
<div v-show={unref(resetButton.showNextAt)}> {unref(resetButton.showNextAt) ? (
<br /> <div>
{unref(resetButton.conversion.buyMax) ? "Next:" : "Req:"}{" "} <br />
{displayResource( {unref(resetButton.conversion.buyMax) ? "Next:" : "Req:"}{" "}
resetButton.conversion.baseResource, {displayResource(
unref(resetButton.conversion.buyMax) || resetButton.conversion.baseResource,
Decimal.floor(unref(resetButton.conversion.actualGain)).neq(1) unref(resetButton.conversion.buyMax) ||
? unref(resetButton.conversion.nextAt) Decimal.floor(unref(resetButton.conversion.actualGain)).neq(1)
: unref(resetButton.conversion.currentAt) ? unref(resetButton.conversion.nextAt)
)}{" "} : unref(resetButton.conversion.currentAt)
{resetButton.conversion.baseResource.displayName} )}{" "}
</div> {resetButton.conversion.baseResource.displayName}
</div>
) : null}
</span> </span>
)); ));
} }