Merged in fix/SW-2602-select-hotel-page-booking-code (pull request #1941)

Fix/SW-2602 select hotel page booking code filtering

* fix: SW-2602 Fixed booking code filtering

* fix: SW-2602 Fixed lint issues


Approved-by: Niclas Edenvin
This commit is contained in:
Hrishikesh Vaipurkar
2025-05-05 09:17:44 +00:00
parent aa43d7d059
commit d2bbc59f47
3 changed files with 6 additions and 4 deletions

View File

@@ -2,8 +2,10 @@ import { cookies } from "next/headers"
import { notFound, redirect } from "next/navigation"
import { Suspense } from "react"
import { BookingErrorCodeEnum } from "@/constants/booking"
import { FamilyAndFriendsCodes } from "@/constants/booking"
import {
BookingErrorCodeEnum,
FamilyAndFriendsCodes,
} from "@/constants/booking"
import { selectRate } from "@/constants/routes/hotelReservation"
import {
getBreakfastPackages,

View File

@@ -64,7 +64,7 @@ export default function HotelCardListing({
: false
const showOnlyBookingCodeRates =
isBookingCodeRateAvailable &&
activeCodeFilter !== BookingCodeFilterEnum.Discounted
activeCodeFilter === BookingCodeFilterEnum.Discounted
const hotels = useMemo(() => {
const sortedHotels = getSortedHotels({

View File

@@ -13,8 +13,8 @@ import { setLang } from "@/i18n/serverContext"
import { getHotelSearchDetails } from "@/utils/hotelSearchDetails"
import { convertSearchParamsToObj } from "@/utils/url"
import AvailabilityError from "./AvailabilityError"
import FnFNotAllowedAlert from "../FnFNotAllowedAlert/FnFNotAllowedAlert"
import AvailabilityError from "./AvailabilityError"
import { getValidDates } from "./getValidDates"
import { getTracking } from "./tracking"