From 325af9b2090949ad499ea31279943244ce870224 Mon Sep 17 00:00:00 2001 From: Bennett Date: Sun, 24 Nov 2024 11:12:14 +0100 Subject: [PATCH] Fix interactive demo (Fix #131) --- apps/docs/components/landing/interactive-demo.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/docs/components/landing/interactive-demo.tsx b/apps/docs/components/landing/interactive-demo.tsx index 2d9e008..dbf7bcb 100644 --- a/apps/docs/components/landing/interactive-demo.tsx +++ b/apps/docs/components/landing/interactive-demo.tsx @@ -7,7 +7,7 @@ import { ZodProvider } from "@autoform/zod"; const defaultCode = `z.object({ name: z.string(), - age: z.number(), + age: z.coerce.number(), isHuman: z.boolean(), })`; const globalZod = z; @@ -17,7 +17,7 @@ function InteractiveDemo() { const [schema, setSchema] = React.useState | null>( z.object({ name: z.string(), - age: z.number(), + age: z.coerce.number(), isHuman: z.boolean(), }), );