From 7cac413f3b397fee95681033f075d51c7c4ee153 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 10 Jun 2024 20:45:23 -0500 Subject: Fix undefined block (#4471) * Fix undefined block (#4378) * Fix undefined block * Changing text and handling all blocks. * Tweaks * Hide follow button in hover card if user blocked --------- Co-authored-by: Josh --- src/components/ProfileHoverCard/index.web.tsx | 9 ++++++--- src/view/com/posts/FeedItem.tsx | 17 ++++++++++++++++- 2 files changed, 22 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/components/ProfileHoverCard/index.web.tsx b/src/components/ProfileHoverCard/index.web.tsx index 024867b1a..e85ad0c37 100644 --- a/src/components/ProfileHoverCard/index.web.tsx +++ b/src/components/ProfileHoverCard/index.web.tsx @@ -370,7 +370,10 @@ function Inner({ profile: profileShadow, logContext: 'ProfileHoverCard', }) - const blockHide = profile.viewer?.blocking || profile.viewer?.blockedBy + const isProfileBlocked = + profile.viewer?.blocking || + profile.viewer?.blockedBy || + profile.viewer?.blockingByList const following = formatCount(profile.followsCount || 0) const followers = formatCount(profile.followersCount || 0) const pluralizedFollowers = plural(profile.followersCount || 0, { @@ -401,7 +404,7 @@ function Inner({ /> - {!isMe && ( + {!isMe && !isProfileBlocked && (