diff --git a/components/ui/Comments.tsx b/components/ui/Comments.tsx index d615b74..bb64885 100644 --- a/components/ui/Comments.tsx +++ b/components/ui/Comments.tsx @@ -26,28 +26,32 @@ type CommentsListProps = { Comments.List = function List({comments}: CommentsListProps) { return ( -
-

- Comments -

- {comments.map((comment) => ( -
- {comment.user.name} -
-
-

{comment.user.name}

-

- -

-
-

{comment.content}

-
-
- ))} -
+ <> + {comments.length > 0 && +
+

+ Comments +

+ {comments.map((comment) => ( +
+ {comment.user.name} +
+
+

{comment.user.name}

+

+ +

+
+

{comment.content}

+
+
+ ))} +
+ } + ) }