feat: SW-1588 Optimized code & comments

This commit is contained in:
Hrishikesh Vaipurkar
2025-02-20 12:03:26 +01:00
parent b0f6fa7e45
commit 8b53ed3301
3 changed files with 12 additions and 4 deletions

View File

@@ -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
}