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) => (