diff --git a/apps/scandic-web/components/ContentType/HotelPage/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/index.tsx index a57c01ffb..6a079bdf5 100644 --- a/apps/scandic-web/components/ContentType/HotelPage/index.tsx +++ b/apps/scandic-web/components/ContentType/HotelPage/index.tsx @@ -45,6 +45,7 @@ import { import styles from "./hotelPage.module.css" import type { HotelPageProps } from "@/types/components/hotelPage/hotelPage" +import { AlertName } from "@/types/enums/alert" import { HotelHashValues } from "@/types/enums/hotelPage" export default async function HotelPage({ hotelId }: HotelPageProps) { @@ -176,7 +177,9 @@ export default async function HotelPage({ hotelId }: HotelPageProps) { {specialAlerts.length ? (
{specialAlerts - .filter((alert) => !alert.displayInBookingFlow) + .filter( + (alert) => alert.name !== AlertName.HotelChildrenInBooking + ) .map((alert) => ( ({ heading: alert.title || null, id: `alert-${alert.type}-${idx}`, + name: alert.type, text: alert.description || null, type: AlertTypeEnum.Info, displayInBookingFlow: alert.displayInBookingFlow, diff --git a/apps/scandic-web/types/enums/alert.ts b/apps/scandic-web/types/enums/alert.ts index 2d46121fe..0b5bd84b2 100644 --- a/apps/scandic-web/types/enums/alert.ts +++ b/apps/scandic-web/types/enums/alert.ts @@ -3,3 +3,7 @@ export enum AlertTypeEnum { Warning = "warning", Alarm = "alarm", } + +export const AlertName = { + HotelChildrenInBooking: "HotelChildrenInBooking", +} as const