From 708eb1aa30d4ef32636ce2fd37d63ed299150e5a Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 30 Dec 2022 11:09:12 +0700 Subject: to_process -> selected in cart --- src/helpers/cart.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/helpers') 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; } -- cgit v1.2.3