From 169751c5a6881b737f9740c3c69264f2cc763247 Mon Sep 17 00:00:00 2001 From: Tobias Johansson Date: Tue, 12 Nov 2024 09:37:17 +0000 Subject: [PATCH] Merged in fix/SW-878-alternate-payment-options (pull request #878) fix(SW-878): fix issue with alternate pay options showing when flex rate is selected * fix(SW-878): fix issue with alternate pay options showing when flex rate is selected Approved-by: Christel Westerberg Approved-by: Simon.Emanuelsson --- .../(public)/hotelreservation/(standard)/[step]/page.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/[step]/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/[step]/page.tsx index 37f1412ff..982157ceb 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/[step]/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/[step]/page.tsx @@ -62,10 +62,6 @@ export default async function StepPage({ roomTypeCode, }) - const hotelData = await getHotelData({ - hotelId, - language: lang, - }) const roomAvailability = await getSelectedRoomAvailability({ hotelId, adults, @@ -75,6 +71,11 @@ export default async function StepPage({ rateCode, roomTypeCode, }) + const hotelData = await getHotelData({ + hotelId, + language: lang, + isCardOnlyPayment: roomAvailability?.mustBeGuaranteed, + }) const breakfastPackages = await getBreakfastPackages(breakfastInput) const user = await getProfileSafely() const savedCreditCards = await getCreditCardsSafely()