fix: update merchantInformationData query
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user