Skip to content

Commit

Permalink
Add initial value to payment playground on website
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-hiller committed Nov 14, 2022
1 parent ab6b1b0 commit 6b4daa7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/website/src/routes/playground/payment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ type PaymentForm = {
};
};

const initialValues = {
owner: 'John Doe',
};

export default function PaymentPage() {
// Create payment form
const paymentForm = createForm<PaymentForm>();
const paymentForm = createForm<PaymentForm>({ initialValues });

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

0 comments on commit 6b4daa7

Please sign in to comment.