Skip to content

Commit

Permalink
Fix interactive demo (Fix #131)
Browse files Browse the repository at this point in the history
  • Loading branch information
vantezzen authored Nov 24, 2024
1 parent 2eb1bd6 commit 325af9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/docs/components/landing/interactive-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -17,7 +17,7 @@ function InteractiveDemo() {
const [schema, setSchema] = React.useState<z.ZodObject<any, any> | null>(
z.object({
name: z.string(),
age: z.number(),
age: z.coerce.number(),
isHuman: z.boolean(),
}),
);
Expand Down

0 comments on commit 325af9b

Please sign in to comment.