Skip to content

Commit

Permalink
fix: tag if condition (elk-zone#1432)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored Jan 24, 2023
1 parent 46a8472 commit 5527468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/tag/TagActionButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5527468

Please sign in to comment.