diff --git a/src/pages/common/CommentsV2/CommentSectionV2.tsx b/src/pages/common/CommentsV2/CommentSectionV2.tsx index af81c9401b..f3eb2b8483 100644 --- a/src/pages/common/CommentsV2/CommentSectionV2.tsx +++ b/src/pages/common/CommentsV2/CommentSectionV2.tsx @@ -60,6 +60,15 @@ const CommentSectionV2 = ({ sourceId }: CommentsV2Props) => { highlightedReply.highlighted = true } } + + // ensure highlighted comment is visible + const index = comments.findIndex( + (x) => x.highlighted || x.replies?.some((y) => y.highlighted), + ) + + if (index > 5) { + setCommentLimit(index + 1) + } } setComments(comments || [])