Skip to content

Commit

Permalink
fix: Fixed follow button showing when not logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
TiagoRibeiro25 committed Sep 6, 2023
1 parent 474a6b5 commit c5271ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FollowsDataModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const FollowsDataModel: React.FC<FollowsDataModelProps> = ({
</Link>
</div>
<div className="flex items-center w-full mx-4 mt-1 sm:justify-end sm:mx-0 sm:mt-0">
{loggedUser?.id !== user.id && (
{loggedUser && loggedUser?.id !== user.id && (
<HandleFollowButton
userId={user.id}
isFollowing={user.isFollowing}
Expand Down

0 comments on commit c5271ab

Please sign in to comment.