diff --git a/src/view/com/profile/FollowButton.tsx b/src/view/com/profile/FollowButton.tsx index 7c018f54fc..032a910c79 100644 --- a/src/view/com/profile/FollowButton.tsx +++ b/src/view/com/profile/FollowButton.tsx @@ -13,13 +13,11 @@ export function FollowButton({ unfollowedType = 'inverted', followedType = 'default', profile, - onToggleFollow, labelStyle, }: { unfollowedType?: ButtonType followedType?: ButtonType profile: Shadow - onToggleFollow?: (v: boolean) => void labelStyle?: StyleProp }) { const followMutation = useProfileFollowMutation() @@ -31,7 +29,6 @@ export function FollowButton({ } try { await followMutation.mutateAsync({did: profile.did}) - onToggleFollow?.(false) } catch (e: any) { Toast.show(`An issue occurred, please try again.`) } @@ -46,7 +43,6 @@ export function FollowButton({ did: profile.did, followUri: profile.viewer?.following, }) - onToggleFollow?.(true) } catch (e: any) { Toast.show(`An issue occurred, please try again.`) }