We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68ddc8d commit 8d4b85bCopy full SHA for 8d4b85b
utils/functions/functions.js
@@ -40,26 +40,6 @@ export const getFloatVal = (string) => {
40
: '';
41
};
42
43
-/**
44
- * Update cart when we add a new product to it
45
- * @param {Object} existingCart
46
- * @param {Object} product
47
- * @param {Number} quantityToBeAdded
48
- */
49
-export const updateCart = (
50
- existingCart,
51
- product,
52
- quantityToBeAdded,
53
- newQuantity = false
54
-) => {
55
- getUpdatedProducts(
56
- existingCart.products,
57
58
59
- newQuantity
60
- );
61
-};
62
-
63
/**
64
* Returns cart data in the required format.
65
* @param {String} data Cart data
0 commit comments