From 7f57f035acd19a495fe767e4123b1fbd527b83fe Mon Sep 17 00:00:00 2001
From: Dinesh Salunke <dineshsalunke@consultbop.com>
Date: Tue, 5 Dec 2023 18:40:44 +0530
Subject: [PATCH] refactor: remove code which hides the quickview modal

its ok to remove this since we don't use quickview
---
 _dev/js/cart.js | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/_dev/js/cart.js b/_dev/js/cart.js
index 7271878..c292755 100644
--- a/_dev/js/cart.js
+++ b/_dev/js/cart.js
@@ -95,15 +95,10 @@ const preventCustomModalOpen = (event) => {
 
   return true;
 };
-
-$(document).ready(() => {
+$(function() {
   const productLineInCartSelector = prestashop.themeSelectors.cart.productLineQty;
   const promises = [];
 
-  prestashop.on('updateCart', () => {
-    $(prestashop.themeSelectors.cart.quickview).modal('hide');
-  });
-
   prestashop.on('updatedCart', () => {
     window.shouldPreventModal = false;
 
@@ -371,4 +366,4 @@ $(document).ready(() => {
 
     return false;
   });
-});
+})