Skip to content

Commit e7ada02

Browse files
authored
Merge pull request #338 from w3bdesign/develop
Fix Scrutinizer code issue - No return
2 parents 56c3d65 + fb11d90 commit e7ada02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/functions/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ export const getUpdatedProducts = (
110110
updatedProduct.totalPrice = parseFloat(
111111
(updatedProduct.price * updatedProduct.qty).toFixed(2)
112112
);
113-
114113
return updatedProducts;
115114
}
116115
// If product not found push the new product to the existing product array.
@@ -133,6 +132,7 @@ const isProductInCart = (existingProductsInCart, productId) => {
133132
if (productId === item.productId) {
134133
return item;
135134
}
135+
return;
136136
};
137137

138138
// This new array will only contain the product which is matched.

0 commit comments

Comments
 (0)