diff --git a/src/features/repeatable.tsx b/src/features/repeatable.tsx index 4cadfe2..e82f8eb 100644 --- a/src/features/repeatable.tsx +++ b/src/features/repeatable.tsx @@ -158,7 +158,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)) { @@ -199,8 +200,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");