fix(profile page): comments could appear after failing to load

This commit is contained in:
Tom (plebeius.eth)
2025-04-06 14:35:26 +02:00
parent 645638b10f
commit 70ea09411c

View File

@@ -95,7 +95,7 @@ const PaginationControls = ({ currentPage, hasMore, onPageChange }: { currentPag
const CommentItem = ({ cid }: { cid: string }) => {
const comment = useComment({ commentCid: cid });
if (!comment) return null;
if (!comment || !comment.subplebbitAddress) return null;
return comment.parentCid ? <Reply key={comment.cid} reply={comment} isSingleReply={true} /> : <Post key={comment.cid} post={comment} />;
};