fix: no respnses text does not show while api call to load responses is in progress
This commit is contained in:
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user