Merged in fix/booking-guest-phone (pull request #1579)
fix: phoneNumber doesn't need to be validated from API * fix: phoneNumber doesn't need to be validated from API Approved-by: Tobias Johansson
This commit is contained in:
@@ -3,7 +3,6 @@ import { z } from "zod"
|
||||
import { BookingStatusEnum, ChildBedTypeEnum } from "@/constants/booking"
|
||||
|
||||
import { nullableArrayObjectValidator } from "@/utils/zod/arrayValidator"
|
||||
import { phoneValidator } from "@/utils/zod/phoneValidator"
|
||||
import { nullableStringValidator } from "@/utils/zod/stringValidator"
|
||||
|
||||
// MUTATION
|
||||
@@ -76,7 +75,7 @@ const guestSchema = z.object({
|
||||
firstName: z.string().nullable().default(""),
|
||||
lastName: z.string().nullable().default(""),
|
||||
membershipNumber: z.string().nullable().default(""),
|
||||
phoneNumber: phoneValidator().nullable().default(""),
|
||||
phoneNumber: z.string().nullable().default(""),
|
||||
countryCode: z.string().nullable().default(""),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user