diff --git a/server/routers/hotels/query.ts b/server/routers/hotels/query.ts index 155426bc9..415677035 100644 --- a/server/routers/hotels/query.ts +++ b/server/routers/hotels/query.ts @@ -193,11 +193,9 @@ export const getHotelData = cache( const hotelData = validateHotelData.data if (isCardOnlyPayment) { - const currentData = hotelData.data.attributes.merchantInformationData - hotelData.data.attributes.merchantInformationData = { - webMerchantId: currentData?.webMerchantId ?? "", - cards: currentData?.cards ?? [], - alternatePaymentOptions: [], + if (hotelData.data.attributes.merchantInformationData) { + hotelData.data.attributes.merchantInformationData.alternatePaymentOptions = + [] } } if (hotelData.data.attributes.gallery) {