Disallow following yourself via market page

This commit is contained in:
James Grugett 2022-06-10 12:55:55 -05:00
parent ad1a40ba3e
commit 15882904eb

View File

@ -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