From 552746825818f4f26d5c1fb93d798da7b1479384 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Tue, 24 Jan 2023 22:57:24 +0100 Subject: [PATCH] fix: tag if condition (#1432) --- components/tag/TagActionButton.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)