Skip to content

Commit

Permalink
fix(post): error was displayed incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
plebeius-eth committed Nov 21, 2024
1 parent 5565795 commit fd8b3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/post/post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit fd8b3ea

Please sign in to comment.