summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorRafi Zadanly <rafizadanly@gmail.com>2022-12-30 11:09:12 +0700
committerRafi Zadanly <rafizadanly@gmail.com>2022-12-30 11:09:12 +0700
commit708eb1aa30d4ef32636ce2fd37d63ed299150e5a (patch)
tree037268b2a7d2cc4337a083b7ef08c0cf35480f68 /src/helpers
parentfb087a064a8f4f33905d310591a9d3ddd9f55031 (diff)
to_process -> selected in cart
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;
}