Fix small bug

This commit is contained in:
Eric Bailey
2025-02-13 12:55:39 -06:00
parent 1e923448f8
commit 1f4b768bc8
+4 -2
View File
@@ -326,8 +326,10 @@ function useProfileFollowMutation(
didBecomeMutual: profile.viewer
? Boolean(profile.viewer.followedBy)
: undefined,
// @ts-expect-error — this is optional
followeeClout: toClout(profile?.followersCount),
followeeClout:
'followersCount' in profile
? toClout(profile.followersCount)
: undefined,
followerClout: toClout(ownProfile?.followersCount),
})
return await agent.follow(did)