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:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user