This commit is contained in:
Tom (plebeius.eth)
2024-07-19 17:30:53 +02:00
parent 3ddf26c930
commit c3f7250256
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -417,7 +417,7 @@ const PostDesktop = ({ openReplyModal, post, roles, showAllReplies, showReplies
)}
</span>
)}
{replyCount === undefined && (
{post?.replyCount === undefined && (
<span className={styles.loadingString}>
<LoadingEllipsis string={t('loading_comments')} />
</span>
+1 -1
View File
@@ -342,7 +342,7 @@ const PostMobile = ({ openReplyModal, post, roles, showAllReplies, showReplies =
</div>
)}
</div>
{replyCount === undefined && (
{post?.replyCount === undefined && (
<span className={styles.loadingString}>
<LoadingEllipsis string={t('loading_comments')} />
</span>
@@ -31,7 +31,7 @@ const AvatarPreview = ({ avatar }: any) => {
</div>
{state !== 'succeeded' && account?.author?.avatar && (
<div className={styles.state}>
{stateText} {error?.message}
{!error && stateText} {error && error?.message}
</div>
)}
</>