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 = (
93
93
newQty = false
94
94
) => {
95
95
// Check if the product already exits in the cart.
96
- const productExitsIndex = isProductInCart (
96
+ const productExistsIndex = isProductInCart (
97
97
existingProductsInCart ,
98
98
product . productId
99
99
) ;
100
100
101
101
// If product exists ( index of that product was found in the array ), update the product quantity and totalPrice
102
102
if ( - 1 < productExitsIndex ) {
103
103
let updatedProducts = existingProductsInCart ;
104
- let updatedProduct = updatedProducts [ productExitsIndex ] ;
104
+ let updatedProduct = updatedProducts [ productExistsIndex ] ;
105
105
106
106
// If have new quantity of the product available, set that, else add the qtyToBeAdded
107
107
updatedProduct . qty = newQty
You can’t perform that action at this time.
0 commit comments