mirror of
https://github.com/plebbit/seedit.git
synced 2026-04-21 15:48:43 -04:00
fix(profile page): comments could appear after failing to load
This commit is contained in:
@@ -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} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user