summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/cart.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helpers/cart.js b/src/helpers/cart.js
index 2cd8da7b..a3b43e96 100644
--- a/src/helpers/cart.js
+++ b/src/helpers/cart.js
@@ -14,9 +14,9 @@ const getItemCart = (product_id) => {
return cart[product_id];
}
-const createOrUpdateItemCart = (product_id, quantity, to_process = false) => {
+const createOrUpdateItemCart = (product_id, quantity, selected = false) => {
let cart = getCart();
- cart[product_id] = { product_id, quantity, to_process };
+ cart[product_id] = { product_id, quantity, selected };
setCart(cart);
return true;
}