diff --git a/src/features/repeatable.tsx b/src/features/repeatable.tsx index eb34af5..f45d7d3 100644 --- a/src/features/repeatable.tsx +++ b/src/features/repeatable.tsx @@ -162,7 +162,8 @@ export function createRepeatable( ) ), requiresPay: false, - visibility: Visibility.None + visibility: Visibility.None, + canMaximize: true } as const; const visibilityRequirement = createVisibilityRequirement(repeatable as GenericRepeatable); if (isArray(repeatable.requirements)) { @@ -205,8 +206,12 @@ export function createRepeatable( if (!unref(genericRepeatable.canClick)) { return; } - payRequirements(repeatable.requirements, unref(repeatable.amountToIncrease)); - genericRepeatable.amount.value = Decimal.add(genericRepeatable.amount.value, 1); + const amountToIncrease = unref(repeatable.amountToIncrease) ?? 1; + payRequirements(repeatable.requirements, amountToIncrease); + genericRepeatable.amount.value = Decimal.add( + genericRepeatable.amount.value, + amountToIncrease + ); onClick?.(event); }; processComputable(repeatable as T, "display");