From fdefe7cfe899125a9bd553b542976eed0de919c1 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Mon, 20 Feb 2023 13:09:22 +0700
Subject: fix

---
 src/lib/cart/components/Cart.jsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/lib/cart/components/Cart.jsx')

diff --git a/src/lib/cart/components/Cart.jsx b/src/lib/cart/components/Cart.jsx
index 0b6ea768..4b9dd41f 100644
--- a/src/lib/cart/components/Cart.jsx
+++ b/src/lib/cart/components/Cart.jsx
@@ -166,11 +166,12 @@ const Cart = () => {
                 <div className="text-red_r-11 font-medium">
                   { currencyFormat(product?.price?.priceDiscount * product?.quantity) }
                 </div>
-                <div className="flex gap-x-2">
+                <div className="flex gap-x-1">
                   <button 
                     type="button" 
                     className="btn-light px-2 py-1"
                     onClick={() => updateQuantity(1, product?.id, 'MINUS')}
+                    disabled={product?.quantity == 1}
                   >
                     -
                   </button>
@@ -189,7 +190,7 @@ const Cart = () => {
                     +
                   </button>
                   <button 
-                    className="btn-red p-1" 
+                    className="btn-red p-1 ml-1" 
                     onClick={() => setDeleteConfirmation(product)}
                   >
                     <TrashIcon className="w-4" />
-- 
cgit v1.2.3

