diff --git a/src/components/comment/CommentItem.astro b/src/components/comment/CommentItem.astro index d9f0ed6..4318972 100644 --- a/src/components/comment/CommentItem.astro +++ b/src/components/comment/CommentItem.astro @@ -49,19 +49,21 @@ const { comment, config, depth, pending } = Astro.props; { - comment.children && - (depth === 1 ? ( - - ) : ( - <> - {comment.children.map((childComment) => ( - - ))} - - )) + comment.children && depth === 1 && ( + + ) } +{ + comment.children && depth !== 1 && ( + <> + {comment.children.map((childComment) => ( + + ))} + + ) +}