forked from Mirrors/elk
fix: tag if condition (#1432)
This commit is contained in:
parent
46a8472001
commit
5527468258
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ const toggleFollowTag = async () => {
|
||||||
tag.following = !tag.following
|
tag.following = !tag.following
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (tag.following)
|
if (previousFollowingState)
|
||||||
await client.v1.tags.unfollow(tag.name)
|
await client.v1.tags.unfollow(tag.name)
|
||||||
else
|
else
|
||||||
await client.v1.tags.follow(tag.name)
|
await client.v1.tags.follow(tag.name)
|
||||||
|
|
Loading…
Reference in a new issue