Skip to content

Commit

Permalink
[Glitch] Fix error on viewing a profile when unlogged
Browse files Browse the repository at this point in the history
Port 1c04135 to glitch-soc

Signed-off-by: Claire <[email protected]>
  • Loading branch information
renchap authored and ClearlyClaire committed Dec 22, 2023
1 parent 931919f commit 42a3b7a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,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')) {
Expand Down

0 comments on commit 42a3b7a

Please sign in to comment.