fix: update merchantInformationData query
This commit is contained in:
@@ -193,11 +193,9 @@ export const getHotelData = cache(
|
|||||||
const hotelData = validateHotelData.data
|
const hotelData = validateHotelData.data
|
||||||
|
|
||||||
if (isCardOnlyPayment) {
|
if (isCardOnlyPayment) {
|
||||||
const currentData = hotelData.data.attributes.merchantInformationData
|
if (hotelData.data.attributes.merchantInformationData) {
|
||||||
hotelData.data.attributes.merchantInformationData = {
|
hotelData.data.attributes.merchantInformationData.alternatePaymentOptions =
|
||||||
webMerchantId: currentData?.webMerchantId ?? "",
|
[]
|
||||||
cards: currentData?.cards ?? [],
|
|
||||||
alternatePaymentOptions: [],
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (hotelData.data.attributes.gallery) {
|
if (hotelData.data.attributes.gallery) {
|
||||||
|
|||||||
Reference in New Issue
Block a user