diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-03-27 17:03:28 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-03-27 17:03:28 +0700 |
| commit | a040418bdddd5fcaf8a8d67e0a66ea92fd16ee24 (patch) | |
| tree | 22be75fe02bf75dfafa7c82b0eef2187b186f86a /src/lib/cart | |
| parent | 7ed2913450713655d2e962846d795dc6b4091de4 (diff) | |
-
Diffstat (limited to 'src/lib/cart')
| -rw-r--r-- | src/lib/cart/components/Cart.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/cart/components/Cart.jsx b/src/lib/cart/components/Cart.jsx index d646420c..7ebee14b 100644 --- a/src/lib/cart/components/Cart.jsx +++ b/src/lib/cart/components/Cart.jsx @@ -93,11 +93,11 @@ const Cart = () => { quantity -= value break case 'BLUR': - if (value != '') return + if (value != '' && value > 0) return quantity = 1 break default: - quantity = value + quantity = value != '' && value < 1 ? 1 : value break } productsToUpdate[productIndex].quantity = quantity |
