Skip to content

Commit 6b4daa7

Browse files
committed
Add initial value to payment playground on website
1 parent ab6b1b0 commit 6b4daa7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/website/src/routes/playground/payment.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ type PaymentForm = {
2424
};
2525
};
2626

27+
const initialValues = {
28+
owner: 'John Doe',
29+
};
30+
2731
export default function PaymentPage() {
2832
// Create payment form
29-
const paymentForm = createForm<PaymentForm>();
33+
const paymentForm = createForm<PaymentForm>({ initialValues });
3034

3135
// Set payment form in form context
3236
onMount(() => useForm().set(paymentForm));

0 commit comments

Comments
 (0)