From f28ddf9b5bdc5008355b8ab6007a6fe7dfe70e14 Mon Sep 17 00:00:00 2001 From: joojjang Date: Sat, 3 Aug 2024 11:16:32 +0900 Subject: [PATCH] =?UTF-8?q?fix(categories):=20=EC=B9=B4=ED=85=8C=EA=B3=A0?= =?UTF-8?q?=EB=A6=AC=20=EB=8D=B0=EC=9D=B4=ED=84=B0=EA=B0=80=20=EB=B0=B0?= =?UTF-8?q?=EC=97=B4=EC=9D=B8=EC=A7=80=20=ED=99=95=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../features/Home/CategorySection/index.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/features/Home/CategorySection/index.tsx b/src/components/features/Home/CategorySection/index.tsx index 73f22c223..537623a95 100644 --- a/src/components/features/Home/CategorySection/index.tsx +++ b/src/components/features/Home/CategorySection/index.tsx @@ -24,14 +24,16 @@ export const CategorySection = () => { md: 6, }} > - {data.map((category) => ( - - - - ))} + {Array.isArray(data) + ? data.map((category) => ( + + + + )) + : null}