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
This commit is contained in:
Tobias Johansson
2024-11-12 09:37:17 +00:00
parent 060f6b6a82
commit 169751c5a6

View File

@@ -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()