1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-04 16:09:59 +00:00

fix: tag if condition (#1432)

This commit is contained in:
Shinigami 2023-01-24 22:57:24 +01:00 committed by GitHub
parent 46a8472001
commit 5527468258
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)