Merged in fix/SW-1551-TRPCError (pull request #1313)
fix/SW-1551-TRPCError * fix(SW-1551): Fixed error in schema Approved-by: Hrishikesh Vaipurkar Approved-by: Linus Flood
This commit is contained in:
committed by
Linus Flood
parent
4a06162f79
commit
3901c3ac77
@@ -101,10 +101,16 @@ const packageSchema = z
|
||||
unitPrice: packageData.price.unitPrice,
|
||||
}))
|
||||
|
||||
const ancillarySchema = z.object({
|
||||
comment: z.string().default(""),
|
||||
deliveryTime: z.string().default(""),
|
||||
})
|
||||
const ancillarySchema = z
|
||||
.object({
|
||||
comment: z.string().default(""),
|
||||
deliveryTime: z.string().default(""),
|
||||
})
|
||||
.nullable()
|
||||
.default({
|
||||
comment: "",
|
||||
deliveryTime: "",
|
||||
})
|
||||
|
||||
const rateDefinitionSchema = z.object({
|
||||
breakfastIncluded: z.boolean().default(false),
|
||||
|
||||
Reference in New Issue
Block a user