diff --git a/components/ContentType/HotelPage/index.tsx b/components/ContentType/HotelPage/index.tsx index ead1a176a..173e41e53 100644 --- a/components/ContentType/HotelPage/index.tsx +++ b/components/ContentType/HotelPage/index.tsx @@ -169,14 +169,16 @@ export default async function HotelPage({ hotelId }: HotelPageProps) { {specialAlerts.length ? (
- {specialAlerts.map((alert) => ( - - ))} + {specialAlerts + .filter((alert) => !alert.displayInBookingFlow) + .map((alert) => ( + + ))}
) : null} diff --git a/server/routers/hotels/schemas/hotel/specialAlerts.ts b/server/routers/hotels/schemas/hotel/specialAlerts.ts index 5d89fe936..4404204e6 100644 --- a/server/routers/hotels/schemas/hotel/specialAlerts.ts +++ b/server/routers/hotels/schemas/hotel/specialAlerts.ts @@ -32,6 +32,7 @@ export const specialAlertsSchema = z id: `alert-${alert.type}-${idx}`, text: alert.description || null, type: AlertTypeEnum.Info, + displayInBookingFlow: alert.displayInBookingFlow, })) }) .default([])