We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bc9fa1 commit 9a671f9Copy full SHA for 9a671f9
1 file changed
packages/features/bookings/lib/getBookingResponsesSchema.ts
@@ -17,6 +17,7 @@ export const bookingResponsesDbSchema = z.record(dbReadResponseSchema);
17
const catchAllSchema = bookingResponsesDbSchema;
18
19
const ensureValidPhoneNumber = (value: string) => {
20
+ if (!value) return "";
21
// + in URL could be replaced with space, so we need to replace it back
22
// Replace the space(s) in the beginning with + as it is supposed to be provided in the beginning only
23
return value.replace(/^ +/, "+");
0 commit comments