MCPcopy Create free account
hub / github.com/WebDevSimplified/calendly-clone / onSubmit

Function onSubmit

src/components/forms/MeetingForm.tsx:63–75  ·  view source on GitHub ↗
(values: z.infer<typeof meetingFormSchema>)

Source from the content-addressed store, hash-verified

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}>

Callers

nothing calls this directly

Calls 1

createMeetingFunction · 0.90

Tested by

no test coverage detected