From 70ea09411ccf63e95d51244b505f099ac495f2e2 Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Sun, 6 Apr 2025 14:35:26 +0200 Subject: [PATCH] fix(profile page): comments could appear after failing to load --- src/views/profile/profile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/profile/profile.tsx b/src/views/profile/profile.tsx index 2dbda6d3..61601d96 100644 --- a/src/views/profile/profile.tsx +++ b/src/views/profile/profile.tsx @@ -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 ? : ; };