diff --git a/src/components/post/PostComments.tsx b/src/components/post/PostComments.tsx index 0df333b..19f7f84 100644 --- a/src/components/post/PostComments.tsx +++ b/src/components/post/PostComments.tsx @@ -36,7 +36,8 @@ const PostComments = ({ {count} {commentData && - commentData.data.map((comment: CommentType, idx: number) => { + commentData.data.length !== 0 && + commentData.data.map((comment: CommentType, idx: number) => ( - ; - })} + + ))} )} {commentData && commentData.data.length === 0 && (