Remove decorated data from generic repeatable display

This commit is contained in:
Seth Posner 2023-03-02 15:04:18 -08:00
parent c585a5d1b1
commit 4b2fa80d4c

View file

@ -225,12 +225,7 @@ export function createRepeatable<T extends RepeatableOptions>(
<>Amount: {formatWhole(genericRepeatable.amount.value)}</>,
{unref(genericRepeatable.limit) !== Decimal.dInf ? (
<> / {formatWhole(unref(genericRepeatable.limit))}</>
) : undefined},
{(genericRepeatable as GenericRepeatable & GenericBonusAmountFeature).bonusAmount == null ? null : (
Decimal.gt(unref((genericRepeatable as GenericRepeatable & GenericBonusAmountFeature).bonusAmount), 0) ? (
<> + {formatWhole(unref((genericRepeatable as GenericRepeatable & GenericBonusAmountFeature).bonusAmount))}</>
) : undefined)
}
) : undefined}
)
</div>
)}