From 88a1333ed10136cde75cc38940b70cffe836f935 Mon Sep 17 00:00:00 2001 From: Tobias Johansson Date: Mon, 5 May 2025 08:44:47 +0000 Subject: [PATCH] Merged in fix/SW-2601-incorrect-availability-alert (pull request #1940) fix: update condition when to display NoAvailabilityAlert when using booking code * fix: update condition when to display NoAvailabilityAlert when using booking code Approved-by: Michael Zetterberg Approved-by: Arvid Norlin --- .../HotelReservation/SelectHotel/NoAvailabilityAlert.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/scandic-web/components/HotelReservation/SelectHotel/NoAvailabilityAlert.tsx b/apps/scandic-web/components/HotelReservation/SelectHotel/NoAvailabilityAlert.tsx index ea9861526..c5566efbd 100644 --- a/apps/scandic-web/components/HotelReservation/SelectHotel/NoAvailabilityAlert.tsx +++ b/apps/scandic-web/components/HotelReservation/SelectHotel/NoAvailabilityAlert.tsx @@ -18,7 +18,7 @@ export default async function NoAvailabilityAlert({ const intl = await getIntl() const lang = getLang() - if (isBookingCodeRateNotAvailable) { + if (bookingCode && isBookingCodeRateNotAvailable) { const bookingCodeText = intl.formatMessage( { defaultMessage: