Fix repeatable amount display

This commit is contained in:
thepaperpilot 2023-04-30 11:23:38 -05:00
parent bffc27344a
commit 5d17d67e00

View file

@ -235,12 +235,10 @@ export function createRepeatable<T extends RepeatableOptions>(
{currDisplay.showAmount === false ? null : ( {currDisplay.showAmount === false ? null : (
<div> <div>
<br /> <br />
joinJSX( <>Amount: {formatWhole(genericRepeatable.amount.value)}</>
<>Amount: {formatWhole(genericRepeatable.amount.value)}</>, {Decimal.isFinite(unref(genericRepeatable.limit)) ? (
{unref(genericRepeatable.limit) !== Decimal.dInf ? (
<> / {formatWhole(unref(genericRepeatable.limit))}</> <> / {formatWhole(unref(genericRepeatable.limit))}</>
) : undefined} ) : undefined}
)
</div> </div>
)} )}
{currDisplay.effectDisplay == null ? null : ( {currDisplay.effectDisplay == null ? null : (