From 08e5b76ba58645929ddeda1830f85f3eaf43969e Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Wed, 14 Aug 2024 17:01:44 +0700
Subject: <iman> update pickup service logic

---
 src-migrate/modules/cart/components/Item.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src-migrate/modules/cart/components/Item.tsx')

diff --git a/src-migrate/modules/cart/components/Item.tsx b/src-migrate/modules/cart/components/Item.tsx
index ce4c5bff..272fa622 100644
--- a/src-migrate/modules/cart/components/Item.tsx
+++ b/src-migrate/modules/cart/components/Item.tsx
@@ -54,7 +54,7 @@ const CartItem = ({ item, editable = true, selfPicking}: Props) => {
 
         <div className={style.details}>
           {/* disini  */}
-          {selfPicking && (item.is_in_bu) && (item.on_hand_qty > item.quantity) && (
+          {selfPicking && (item.is_in_bu) && (item.on_hand_qty >= item.quantity) && (
             <div className='text-xs text-red-500'>
               Barang ini bisa di pickup maksimal pukul 16.00
             </div>
-- 
cgit v1.2.3

