Skip to content

Commit 325af9b

Browse files
authored
Fix interactive demo (Fix #131)
1 parent 2eb1bd6 commit 325af9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/docs/components/landing/interactive-demo.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ZodProvider } from "@autoform/zod";
77

88
const defaultCode = `z.object({
99
name: z.string(),
10-
age: z.number(),
10+
age: z.coerce.number(),
1111
isHuman: z.boolean(),
1212
})`;
1313
const globalZod = z;
@@ -17,7 +17,7 @@ function InteractiveDemo() {
1717
const [schema, setSchema] = React.useState<z.ZodObject<any, any> | null>(
1818
z.object({
1919
name: z.string(),
20-
age: z.number(),
20+
age: z.coerce.number(),
2121
isHuman: z.boolean(),
2222
}),
2323
);

0 commit comments

Comments
 (0)