From 1f4b768bc85d6e735f4e06885a957dee00ea9844 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 13 Feb 2025 12:55:39 -0600 Subject: [PATCH] Fix small bug --- src/state/queries/profile.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/state/queries/profile.ts b/src/state/queries/profile.ts index 54e653b901..2c98df634d 100644 --- a/src/state/queries/profile.ts +++ b/src/state/queries/profile.ts @@ -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)