From fbf187e7a2db052bf4fe78cfdbcc7c1cfaa82d75 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Tue, 11 Apr 2023 15:00:03 +0700
Subject: fix cart bug

---
 src/lib/cart/components/Cart.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(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 d18b1a28..d0685fe3 100644
--- a/src/lib/cart/components/Cart.jsx
+++ b/src/lib/cart/components/Cart.jsx
@@ -329,7 +329,7 @@ const Cart = () => {
                     <td colSpan={6}>Keranjang belanja anda masih kosong</td>
                   </tr>
                 )}
-                {products?.map((product) => (
+                {products && products?.map((product) => (
                   <tr key={product.id}>
                     <td>
                       <input
-- 
cgit v1.2.3

