fix replyCount

This commit is contained in:
plebbitor
2023-03-20 17:11:09 +01:00
parent 90b53d49fd
commit f749e069df
+2 -2
View File
@@ -480,7 +480,7 @@ const Thread = () => {
</div>
</div>
</div>
{comment.replyCount ?? <PostLoader />}
{comment.replyCount === undefined ? <PostLoader /> : null}
{comment.replyCount > 0 &&
Object.keys(comment.replies.pages.topAll.comments).map(() => {
const renderedComments = renderThreadComments(comment.replies.pages.topAll.comments);
@@ -639,7 +639,7 @@ const Thread = () => {
</blockquote>
</div>
</div>
{comment.replyCount ?? <PostLoader />}
{comment.replyCount === undefined ? <PostLoader /> : null}
{comment.replyCount > 0 &&
Object.keys(comment.replies.pages.topAll.comments).map(() => {
const renderedComments = renderThreadComments(comment.replies.pages.topAll.comments);