From 3ec0b82dce38af3e83f83ee378677fc82aaa8594 Mon Sep 17 00:00:00 2001 From: ayeshoali Date: Tue, 18 Oct 2022 15:15:05 +0500 Subject: [PATCH] refactor: fixed Lint tests --- src/discussions/comments/CommentsView.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/discussions/comments/CommentsView.jsx b/src/discussions/comments/CommentsView.jsx index 41a90469..c6168451 100644 --- a/src/discussions/comments/CommentsView.jsx +++ b/src/discussions/comments/CommentsView.jsx @@ -71,11 +71,14 @@ function DiscussionCommentsView({ ...filterPosts(comments, 'unendorsed')], [comments]); return ( <> - {!isLoading &&
+ {!isLoading + && ( +
{endorsed === EndorsementStatus.ENDORSED ? intl.formatMessage(messages.endorsedResponseCount, { num: sortedComments.length }) : intl.formatMessage(messages.responseCount, { num: sortedComments.length })} -
} +
+ )}
{sortedComments.map(comment => (