diff options
Diffstat (limited to 'src/core/utils')
| -rw-r--r-- | src/core/utils/cart.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/utils/cart.js b/src/core/utils/cart.js index 928d2ad1..52e157f2 100644 --- a/src/core/utils/cart.js +++ b/src/core/utils/cart.js @@ -18,7 +18,7 @@ const getItemCart = ({ productId }) => { return cart[productId] } -const addItemCart = ({ productId, quantity, selected = false }) => { +const updateItemCart = ({ productId, quantity, selected = false }) => { let cart = getCart() quantity = parseInt(quantity) cart[productId] = { productId, quantity, selected } @@ -36,6 +36,6 @@ const deleteItemCart = ({ productId }) => { export { getCart, getItemCart, - addItemCart, + updateItemCart, deleteItemCart }
\ No newline at end of file |
