feat(sw-697): Added default values
This commit is contained in:
@@ -780,7 +780,11 @@ const breakfastPackagePriceSchema = z
|
||||
price: z.string(),
|
||||
totalPrice: z.string(),
|
||||
})
|
||||
.optional() // TODO: Remove optional when the API change has been deployed
|
||||
.default({
|
||||
currency: CurrencyEnum.SEK,
|
||||
price: "0",
|
||||
totalPrice: "0",
|
||||
}) // TODO: Remove optional and default when the API change has been deployed
|
||||
|
||||
export const breakfastPackageSchema = z.object({
|
||||
code: z.string(),
|
||||
|
||||
Reference in New Issue
Block a user