Fix error on viewing a profile when unlogged (#28465)

This commit is contained in:
Renaud Chaput 2023-12-21 21:19:18 +01:00 committed by GitHub
parent 9251779d75
commit 1c041356a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')) {