From 998640d9b79fe057fc33531a444a13ce23d811d4 Mon Sep 17 00:00:00 2001 From: Zenit Shkreli <69572953+zenit2001@users.noreply.github.com> Date: Fri, 20 Dec 2024 09:51:33 +0100 Subject: [PATCH] fix: adjust the call to GetStores to remove not necessary lines --- .../bm_adyen/cartridge/static/default/js/adyenSettings.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cartridges/bm_adyen/cartridge/static/default/js/adyenSettings.js b/src/cartridges/bm_adyen/cartridge/static/default/js/adyenSettings.js index 08892b316..e6a10798e 100644 --- a/src/cartridges/bm_adyen/cartridge/static/default/js/adyenSettings.js +++ b/src/cartridges/bm_adyen/cartridge/static/default/js/adyenSettings.js @@ -48,14 +48,12 @@ const expressPaymentMethods = [ ]; document.addEventListener('DOMContentLoaded', async () => { - const response = await fetch('AdyenSettings-GetStores', { + await fetch('AdyenSettings-GetStores', { headers: { 'Content-Type': 'application/json; charset=utf-8', }, method: 'GET', }); - const result = await response.json(); - return result; }); document.addEventListener('DOMContentLoaded', () => {