feat: SW-1588 Optimized code & comments
This commit is contained in:
@@ -44,7 +44,8 @@ export const roomConfigurationSchema = z
|
||||
return product
|
||||
}
|
||||
|
||||
// Return rate even if single when booking code rate which can be any one of other rate types
|
||||
// Return rate with only public available when it is a booking code rate
|
||||
// which can be any one of other rate types
|
||||
if (product.productType.public.rateType !== RateTypeEnum.Regular) {
|
||||
return product
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user