fix: no respnses text does not show while api call to load responses is in progress

This commit is contained in:
ayeshoali
2022-10-18 14:06:13 +05:00
parent c5ad7cfca5
commit 375af11a7f

View File

@@ -71,11 +71,11 @@ function DiscussionCommentsView({
...filterPosts(comments, 'unendorsed')], [comments]);
return (
<>
<div className="mx-4 text-primary-700" role="heading" aria-level="2" style={{ lineHeight: '28px' }}>
{!isLoading && <div className="mx-4 text-primary-700" role="heading" aria-level="2" style={{ lineHeight: '28px' }}>
{endorsed === EndorsementStatus.ENDORSED
? intl.formatMessage(messages.endorsedResponseCount, { num: sortedComments.length })
: intl.formatMessage(messages.responseCount, { num: sortedComments.length })}
</div>
</div>}
<div className="mx-4" role="list">
{sortedComments.map(comment => (
<Comment comment={comment} key={comment.id} postType={postType} isClosedPost={isClosed} />