From b7a98fbaa9bd2c8d9fafbe3090bc2c0a8a09dde5 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 16 Dec 2022 15:39:02 +0700 Subject: no message --- src/pages/shop/cart.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/pages/shop/cart.js') diff --git a/src/pages/shop/cart.js b/src/pages/shop/cart.js index 0baaccd1..fe31e7c9 100644 --- a/src/pages/shop/cart.js +++ b/src/pages/shop/cart.js @@ -80,9 +80,7 @@ export default function Cart() { const updateQuantity = (productId, quantity) => { quantity = quantity == '' ? '' : parseInt(quantity); - if (quantity > 0) { - updateCart(productId, quantity); - } + updateCart(productId, quantity); }; const plusQuantity = (productId) => { @@ -119,7 +117,7 @@ export default function Cart() { setProducts([...productsToUpdate]); deleteItemCart(productId); hideDeleteConfirmation(); - toast.success('Berhasil menghapus 1 item dari keranjang', { duration: 1500 }); + toast.success('Berhasil menghapus 1 barang dari keranjang', { duration: 1500 }); } const toggleProductToProcess = (productId) => { @@ -132,7 +130,8 @@ export default function Cart() { return ( <>