Skip to content

Commit

Permalink
dont follow yourself
Browse files Browse the repository at this point in the history
  • Loading branch information
Bardala committed Nov 17, 2023
1 parent 43bbabe commit ad60714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/UsersList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const UsersList = () => {
<Link to={`/u/${user.id}`}>
<p className="username">{user.username}</p>
</Link>
<FollowButton userId={user.id} />
{currUser?.id !== user.id && <FollowButton userId={user.id} />}
</li>
))}
</ul>
Expand Down

0 comments on commit ad60714

Please sign in to comment.