fix(post): error was displayed incorrectly

This commit is contained in:
Tom (plebeius.eth)
2024-11-21 11:30:15 +01:00
parent 5565795a14
commit fd8b3ea2e9
+1 -1
View File
@@ -105,7 +105,7 @@ const PostPage = () => {
)}
{/* TODO: remove this replyCount error once api supports scrolling replies pages */}
{replyCount > 60 && <span className={styles.error}>Error: this thread has too many replies, some of them cannot be displayed right now.</span>}
{error && <span className={styles.error}>Error: {error.message}</span>}
{error && <span className={styles.error}>Error: {error?.message || error}</span>}
{isInDescriptionView ? (
<SubplebbitDescription
avatarUrl={suggested?.avatarUrl}