Fix repeatable amount display

This commit is contained in:
thepaperpilot 2023-04-30 11:23:38 -05:00
parent fe65db7f37
commit c85155f658

View file

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