feat: add multiroom tracking to booking flow
This commit is contained in:
@@ -38,9 +38,15 @@ export const roomConfigurationSchema = z
|
||||
(product) => !product.public?.rateCode && !product.member?.rateCode
|
||||
)
|
||||
if (allProductsMissBothRateCodes) {
|
||||
data.status = AvailabilityEnum.NotAvailable
|
||||
return {
|
||||
...data,
|
||||
status: AvailabilityEnum.NotAvailable,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return data
|
||||
// Creating a new objekt since data is frozen (readony)
|
||||
// and can cause errors to be thrown if trying to manipulate
|
||||
// object elsewhere
|
||||
return { ...data }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user