From 5a8ec23af34e300b121d7f786b9fa229029027c9 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Thu, 23 Feb 2023 11:37:10 +0700
Subject: fix

---
 src/lib/checkout/components/Checkout.jsx | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

(limited to 'src/lib/checkout/components/Checkout.jsx')

diff --git a/src/lib/checkout/components/Checkout.jsx b/src/lib/checkout/components/Checkout.jsx
index 4d7b2b88..f6170b13 100644
--- a/src/lib/checkout/components/Checkout.jsx
+++ b/src/lib/checkout/components/Checkout.jsx
@@ -158,9 +158,12 @@ const Checkout = () => {
       <Divider />
 
       <div className='p-4 flex flex-col gap-y-4'>
-        {products?.map((product) => (
-          <VariantGroupCard variants={product} key={product.id} openOnClick={false} />
-        ))}
+        {products && (
+          <VariantGroupCard
+            openOnClick={false}
+            variants={products}
+          />
+        )}
       </div>
 
       <Divider />
-- 
cgit v1.2.3

