From c85155f658279416e0c873a0c21c5639616e65bc Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 30 Apr 2023 11:23:38 -0500 Subject: [PATCH] Fix repeatable amount display --- src/features/repeatable.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/features/repeatable.tsx b/src/features/repeatable.tsx index d9bf372..eb34af5 100644 --- a/src/features/repeatable.tsx +++ b/src/features/repeatable.tsx @@ -235,12 +235,10 @@ export function createRepeatable( {currDisplay.showAmount === false ? null : (

- 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} - )
)} {currDisplay.effectDisplay == null ? null : (