Merged in fix/SW-2717-select-hotel-booking-codes- (pull request #2270)

fix: SW-2717 Updated filter display rules

* fix: SW-2717 Updated filter display rules

* fix: SW-2717 Fixed chip button trigger popover after next upgrade

* SW-2717 Optimised code


Approved-by: Erik Tiekstra
This commit is contained in:
Hrishikesh Vaipurkar
2025-06-05 07:14:49 +00:00
parent 9fb5f82d92
commit e3f4cfb738
9 changed files with 32 additions and 37 deletions

View File

@@ -139,10 +139,6 @@ export default function SelectHotelContent({
</Button>
)
const isRegularRateAvailable = bookingCode
? hotels.some((hotel) => !hotel.availability.bookingCode)
: false
const isSpecialRate = bookingCode
? hotels.some(
(hotel) =>
@@ -152,10 +148,7 @@ export default function SelectHotelContent({
: false
const showBookingCodeFilter =
bookingCode &&
isBookingCodeRateAvailable &&
isRegularRateAvailable &&
!isSpecialRate
bookingCode && isBookingCodeRateAvailable && !isSpecialRate
return (
<div className={styles.container}>