Skip to content

Commit

Permalink
Update packages/react/src/transactions/useFollow.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Cesare Naldi <[email protected]>
  • Loading branch information
krzysu and cesarenaldi authored Aug 10, 2023
1 parent 16dea00 commit ac77d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/transactions/useFollow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export function useFollow({ followee, follower }: UseFollowArgs): FollowOperatio
);
}

invariant(followee.followStatus?.canFollow, 'You already follow this profile');
invariant(followee.followStatus?.canFollow, 'You already following this profile. Check the `followee.followStatus.canFollow' to determine if you can call `useFollow`.);

const request = createFollowRequest(followee, follower);
return follow(request);
Expand Down

0 comments on commit ac77d74

Please sign in to comment.