diff --git a/view/frontend/web/js/view/minicart.js b/view/frontend/web/js/view/minicart.js index a594c17..c9fd5bc 100644 --- a/view/frontend/web/js/view/minicart.js +++ b/view/frontend/web/js/view/minicart.js @@ -136,10 +136,12 @@ define([ * - Only triggers if the customer section is included in the reload */ updateMiniCart: function (event, sections) { - if (sections.includes('customer')) { - const sectionsToUpdate = ['cart']; - customerData.invalidate(sectionsToUpdate); - customerData.reload(sectionsToUpdate, true); + if (typeof sections !== 'undefined'){ + if (sections.includes('cart')) { + const sectionsToUpdate = ['cart']; + customerData.invalidate(sectionsToUpdate); + customerData.reload(sectionsToUpdate, true); + } } }, });