diff --git a/components/tag/TagActionButton.vue b/components/tag/TagActionButton.vue index 7c46c8d0..55f17b5a 100644 --- a/components/tag/TagActionButton.vue +++ b/components/tag/TagActionButton.vue @@ -19,7 +19,7 @@ const toggleFollowTag = async () => { tag.following = !tag.following try { - if (tag.following) + if (previousFollowingState) await client.v1.tags.unfollow(tag.name) else await client.v1.tags.follow(tag.name)