fix: redemptions did not show properly
This commit is contained in:
@@ -115,15 +115,15 @@ export function createRatesStore({
|
||||
activeRoom = unselectedRoomIndex
|
||||
}
|
||||
|
||||
const isRedemptionBooking = booking.searchType === REDEMPTION
|
||||
|
||||
return create<RatesState>()((set) => {
|
||||
return {
|
||||
activeRoom,
|
||||
booking,
|
||||
packageOptions,
|
||||
hotelType,
|
||||
isRedemptionBooking: searchParams.has("searchType")
|
||||
? searchParams.get("searchType") === REDEMPTION
|
||||
: false,
|
||||
isRedemptionBooking,
|
||||
isUserLoggedIn,
|
||||
pathname,
|
||||
rateSummary,
|
||||
@@ -156,7 +156,9 @@ export function createRatesStore({
|
||||
const bookingCode = room.rateCode
|
||||
? room.bookingCode
|
||||
: booking.bookingCode
|
||||
if (bookingCode) {
|
||||
if (isRedemptionBooking) {
|
||||
selectedFilter = BookingCodeFilterEnum.All
|
||||
} else if (bookingCode) {
|
||||
selectedFilter = BookingCodeFilterEnum.Discounted
|
||||
} else {
|
||||
selectedFilter = BookingCodeFilterEnum.Regular
|
||||
|
||||
Reference in New Issue
Block a user