update fix

This commit is contained in:
plebbitor
2023-03-18 22:14:31 +01:00
parent 4005d88804
commit 36ef011f6a
+13 -5
View File
@@ -534,7 +534,6 @@ const Thread = ({ setBodyStyle }) => {
<a onClick={handleClickBottom} onMouseOver={(event) => event.target.style.cursor='pointer'} onTouchStart={handleClickBottom}>Bottom</a>
]
</span>
{/* "loading" indicator while replycount loads */}
{comment ? (
comment.replyCount !== undefined ? (
comment.replyCount > 0 ? (
@@ -918,11 +917,20 @@ const Thread = ({ setBodyStyle }) => {
</select>
</span>
{comment ? (
comment.replyCount > 0 ? (
<span className="reply-stat">{comment.replyCount} replies</span>
comment.replyCount !== undefined ? (
comment.replyCount > 0 ? (
comment.replyCount === 1 ? (
<span className="reply-stat">{comment.replyCount} reply</span>
) : (
<span className="reply-stat">{comment.replyCount} replies</span>
)
) : (
<span className="reply-stat">No replies yet</span>
)
) : (
<span className="reply-stat">No replies yet</span>
)) : (
<span className="reply-stat">Loading...</span>
)
) : (
null
)}
<hr />