diff --git a/app/javascript/mastodon/features/account/components/header.jsx b/app/javascript/mastodon/features/account/components/header.jsx index ab9526f66a..97f68c2217 100644 --- a/app/javascript/mastodon/features/account/components/header.jsx +++ b/app/javascript/mastodon/features/account/components/header.jsx @@ -85,6 +85,8 @@ 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')) {