From d9db9f9d3415f62a89dc658f28d742a8c232a8f7 Mon Sep 17 00:00:00 2001 From: Simon Emanuelsson Date: Tue, 15 Apr 2025 16:20:00 +0200 Subject: [PATCH] fix: public promotion with code did not make it through the check sometimes --- .../SelectHotelMap/SelectHotelMapContent/index.tsx | 2 +- .../RoomsList/RoomListItem/Rates/Campaign.tsx | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/apps/scandic-web/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx b/apps/scandic-web/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx index c8c2eb65e..a1f0f98f9 100644 --- a/apps/scandic-web/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx +++ b/apps/scandic-web/components/HotelReservation/SelectHotel/SelectHotelMap/SelectHotelMapContent/index.tsx @@ -167,7 +167,7 @@ export default function SelectHotelContent({ > - {intl.formatMessage({ id: "Back" })} + {intl.formatMessage({ defaultMessage: "Back" })} + c.rateDefinition.isCampaignRate || c.rateDefinitionMember?.isCampaignRate + ) if (selectedFilter === BookingCodeFilterEnum.Discounted && !isCampaignRate) { return null