Skip to content

Commit 9295665

Browse files
feat: Update default credit add amount from $5 to $10 (#5463)
Updated the PaymentModal component to change the default credit add amount from $5 to $10. This includes: - Changed initial amount state from 5 to 10 - Updated preset amounts array to start with $10 instead of $5 - Updated MIN_AMOUNT constant from 5 to 10 - Updated default reset amount from 5 to 10 Fixes ENG-3820 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: replicas-connector[bot] <replicas-connector[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8882351 commit 9295665

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

web/components/templates/settings/PaymentModal.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ const PaymentModal: React.FC<PaymentModalProps> = ({
2020
onClose,
2121
returnUrl,
2222
}) => {
23-
const [amount, setAmount] = useState(5);
23+
const [amount, setAmount] = useState(10);
2424
const [customAmount, setCustomAmount] = useState("");
2525
const createCheckoutSession = useCreateCheckoutSession();
2626
const { setNotification } = useNotification();
2727

28-
const presetAmounts = [5, 20, 100, 500];
29-
const MIN_AMOUNT = 5;
28+
const presetAmounts = [10, 20, 100, 500];
29+
const MIN_AMOUNT = 10;
3030

3131
const creditsAmountCents = Math.round(amount * 100);
3232
const percentageFeeCents = Math.ceil(
@@ -47,7 +47,7 @@ const PaymentModal: React.FC<PaymentModalProps> = ({
4747
setCustomAmount(value);
4848

4949
if (value === "") {
50-
setAmount(5);
50+
setAmount(10);
5151
return;
5252
}
5353

0 commit comments

Comments
 (0)