From b624b596eec124a01d72c876bebc96ab56b6256f Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 17 Jan 2024 09:56:48 +0100 Subject: [PATCH] Revert "Fix error on viewing a profile when unlogged (#28465)" This reverts commit 1c041356a1c264347a787b0370163df7753ef3da. --- app/javascript/mastodon/features/account/components/header.jsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/javascript/mastodon/features/account/components/header.jsx b/app/javascript/mastodon/features/account/components/header.jsx index 233d208c64..e5ae5eeb9f 100644 --- a/app/javascript/mastodon/features/account/components/header.jsx +++ b/app/javascript/mastodon/features/account/components/header.jsx @@ -84,8 +84,6 @@ const titleFromAccount = account => { }; const messageForFollowButton = relationship => { - if(!relationship) return messages.follow; - if (relationship.get('following') && relationship.get('followed_by')) { return messages.mutual; } else if (!relationship.get('following') && relationship.get('followed_by')) {