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 && (