following-debug
This commit is contained in:
parent
7d17d63b5d
commit
0cbd3aedba
|
@ -72,10 +72,9 @@ export const AuthorBadge = (props: Props) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
const handleFollowClick = () => {
|
const handleFollowClick = () => {
|
||||||
requireAuthentication(() => {
|
requireAuthentication(async () => {
|
||||||
isSubscribed()
|
const handle = isSubscribed() ? unfollow : follow
|
||||||
? unfollow(FollowingEntity.Author, props.author.slug)
|
await handle(FollowingEntity.Author, props.author.slug)
|
||||||
: follow(FollowingEntity.Author, props.author.slug)
|
|
||||||
}, 'subscribe')
|
}, 'subscribe')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user