(values: z.infer<typeof meetingFormSchema>)
| 61 | }, [validTimes, timezone]) |
| 62 | |
| 63 | async function onSubmit(values: z.infer<typeof meetingFormSchema>) { |
| 64 | const data = await createMeeting({ |
| 65 | ...values, |
| 66 | eventId, |
| 67 | clerkUserId, |
| 68 | }) |
| 69 | |
| 70 | if (data?.error) { |
| 71 | form.setError("root", { |
| 72 | message: "There was an error saving your event", |
| 73 | }) |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | return ( |
| 78 | <Form {...form}> |
nothing calls this directly
no test coverage detected