diff --git a/components/HotelReservation/SelectRate/RoomSelection/RoomCard/index.tsx b/components/HotelReservation/SelectRate/RoomSelection/RoomCard/index.tsx index 4b8c47928..1b90ed5af 100644 --- a/components/HotelReservation/SelectRate/RoomSelection/RoomCard/index.tsx +++ b/components/HotelReservation/SelectRate/RoomSelection/RoomCard/index.tsx @@ -20,9 +20,11 @@ import styles from "./roomCard.module.css" import type { RoomCardProps } from "@/types/components/hotelReservation/selectRate/roomCard" import { RoomPackageCodeEnum } from "@/types/components/hotelReservation/selectRate/roomFilter" +import { HotelTypeEnum } from "@/types/enums/hotelType" export default function RoomCard({ hotelId, + hotelType, rateDefinitions, roomConfiguration, roomCategories, @@ -59,17 +61,14 @@ export default function RoomCard({ } const getBreakfastMessage = (rate: RateDefinition | undefined) => { - const breakfastIncluded = getRateDefinitionForRate(rate)?.breakfastIncluded - switch (breakfastIncluded) { - case true: - return intl.formatMessage({ id: "Breakfast is included." }) - case false: - return intl.formatMessage({ id: "Breakfast selection in next step." }) - default: - return intl.formatMessage({ - id: "Breakfast deal can be purchased at the hotel.", - }) + if (hotelType === HotelTypeEnum.ScandicGo) { + return intl.formatMessage({ + id: "Breakfast deal can be purchased at the hotel.", + }) } + return getRateDefinitionForRate(rate)?.breakfastIncluded + ? intl.formatMessage({ id: "Breakfast is included." }) + : intl.formatMessage({ id: "Breakfast selection in next step." }) } const petRoomPackage = diff --git a/components/HotelReservation/SelectRate/RoomSelection/index.tsx b/components/HotelReservation/SelectRate/RoomSelection/index.tsx index 18e2389c4..9f63b4923 100644 --- a/components/HotelReservation/SelectRate/RoomSelection/index.tsx +++ b/components/HotelReservation/SelectRate/RoomSelection/index.tsx @@ -18,6 +18,7 @@ export default function RoomSelection({ selectedPackages, setRateCode, rateSummary, + hotelType, }: RoomSelectionProps) { const router = useRouter() const searchParams = useSearchParams() @@ -67,6 +68,7 @@ export default function RoomSelection({