diff --git a/packages/features/bookings/lib/getBookingResponsesSchema.ts b/packages/features/bookings/lib/getBookingResponsesSchema.ts index 141362a841..70417effa0 100644 --- a/packages/features/bookings/lib/getBookingResponsesSchema.ts +++ b/packages/features/bookings/lib/getBookingResponsesSchema.ts @@ -223,7 +223,7 @@ function preprocess({ if (optionValue) { // `typeOfOptionInput` can be any of the main types. So, we the same validations should run for `optionValue` if (typeOfOptionInput === "phone") { - if (!phoneSchema.safeParse(optionValue).success) { + if (!(await phoneSchema.safeParseAsync(optionValue)).success) { ctx.addIssue({ code: z.ZodIssueCode.custom, message: m("invalid_number") }); } }