diff --git a/src/discussions/comments/CommentsView.jsx b/src/discussions/comments/CommentsView.jsx index 775b1808..e347e5d6 100644 --- a/src/discussions/comments/CommentsView.jsx +++ b/src/discussions/comments/CommentsView.jsx @@ -25,7 +25,7 @@ import { EmptyPage } from '../empty-posts'; import { Post } from '../posts'; import { selectThread } from '../posts/data/selectors'; import { fetchThread, markThreadAsRead } from '../posts/data/thunks'; -import { discussionsPath, filterPosts } from '../utils'; +import { discussionsPath, filterPosts, isLastElementOfList } from '../utils'; import { selectThreadComments, selectThreadCurrentPage, selectThreadHasMorePages } from './data/selectors'; import { fetchThreadComments } from './data/thunks'; import { Comment, ResponseEditor } from './comment'; @@ -99,13 +99,13 @@ function DiscussionCommentsView({ const handleComments = (postComments, showLoadMoreResponses = false) => (
- {postComments.map((comment, index) => ( + {postComments.map((comment) => ( ))} diff --git a/src/discussions/common/AuthorLabel.jsx b/src/discussions/common/AuthorLabel.jsx index 7beb46f7..45c2e03a 100644 --- a/src/discussions/common/AuthorLabel.jsx +++ b/src/discussions/common/AuthorLabel.jsx @@ -43,6 +43,7 @@ function AuthorLabel({ } const isRetiredUser = author ? author.startsWith('retired__user') : false; + const showTextPrimary = !authorLabelMessage && !isRetiredUser && !alert; const className = classNames('d-flex align-items-center', { 'mb-0.5': !postOrComment }, labelColor); @@ -91,7 +92,7 @@ function AuthorLabel({ {authorLabelMessage && (