diff --git a/src/components/Thread.jsx b/src/components/Thread.jsx index e442cf15..28ccfd3c 100644 --- a/src/components/Thread.jsx +++ b/src/components/Thread.jsx @@ -534,12 +534,22 @@ const Thread = ({ setBodyStyle }) => { event.target.style.cursor='pointer'} onTouchStart={handleClickBottom}>Bottom ] + {/* "loading" indicator while replycount loads */} {comment ? ( - comment.replyCount > 0 ? ( - {comment.replyCount} replies + comment.replyCount !== undefined ? ( + comment.replyCount > 0 ? ( + comment.replyCount === 1 ? ( + {comment.replyCount} reply + ) : ( + {comment.replyCount} replies + ) + ) : ( + No replies yet + ) ) : ( - No replies yet - )) : ( + Loading... + ) + ) : ( null )}