Disallow following yourself via market page
This commit is contained in:
parent
ad1a40ba3e
commit
15882904eb
|
@ -57,7 +57,7 @@ export function UserFollowButton(props: { userId: string; small?: boolean }) {
|
|||
const following = useFollows(currentUser?.id)
|
||||
const isFollowing = following?.includes(userId)
|
||||
|
||||
if (!currentUser) return null
|
||||
if (!currentUser || currentUser.id === userId) return null
|
||||
|
||||
return (
|
||||
<FollowButton
|
||||
|
|
Loading…
Reference in New Issue
Block a user