File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -93,15 +93,15 @@ export const getUpdatedProducts = (
9393 newQty = false
9494) => {
9595 // Check if the product already exits in the cart.
96- const productExitsIndex = isProductInCart (
96+ const productExistsIndex = isProductInCart (
9797 existingProductsInCart ,
9898 product . productId
9999 ) ;
100100
101101 // If product exists ( index of that product was found in the array ), update the product quantity and totalPrice
102102 if ( - 1 < productExitsIndex ) {
103103 let updatedProducts = existingProductsInCart ;
104- let updatedProduct = updatedProducts [ productExitsIndex ] ;
104+ let updatedProduct = updatedProducts [ productExistsIndex ] ;
105105
106106 // If have new quantity of the product available, set that, else add the qtyToBeAdded
107107 updatedProduct . qty = newQty
You can’t perform that action at this time.
0 commit comments