From 67fc10b60f873a836608578b5fe317c48773f4ff Mon Sep 17 00:00:00 2001 From: Siwoo Lee Date: Fri, 31 May 2024 17:32:16 +0900 Subject: [PATCH] Fix: PostComments --- src/components/post/PostComments.tsx | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/components/post/PostComments.tsx b/src/components/post/PostComments.tsx index 8ec3afc..ab5af2c 100644 --- a/src/components/post/PostComments.tsx +++ b/src/components/post/PostComments.tsx @@ -35,19 +35,20 @@ const PostComments = ({ {commentCount} {count} - {commentData.data.map((comment: CommentType, idx: number) => { - - - ; - })} + {commentData && + commentData.data.map((comment: CommentType, idx: number) => { + + + ; + })} )} {commentData && commentData.data.length === 0 && (