diff --git a/src/components/Author/AuthorBadge/AuthorBadge.tsx b/src/components/Author/AuthorBadge/AuthorBadge.tsx index 730b42c2..19a2deb3 100644 --- a/src/components/Author/AuthorBadge/AuthorBadge.tsx +++ b/src/components/Author/AuthorBadge/AuthorBadge.tsx @@ -72,10 +72,9 @@ export const AuthorBadge = (props: Props) => { }) const handleFollowClick = () => { - requireAuthentication(() => { - isSubscribed() - ? unfollow(FollowingEntity.Author, props.author.slug) - : follow(FollowingEntity.Author, props.author.slug) + requireAuthentication(async () => { + const handle = isSubscribed() ? unfollow : follow + await handle(FollowingEntity.Author, props.author.slug) }, 'subscribe') }