Skip to content

Commit 09f597e

Browse files
committed
Fix spelling error
1 parent 4e7c890 commit 09f597e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/functions/functions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)