Fixes issue where other emoji (not thumbup/thumbdown) were not removed
This commit is contained in:
parent
c426a571db
commit
e5cbd5885a
|
@ -44,7 +44,7 @@ class @AwardsHandler
|
|||
decrementCounter: (emoji) ->
|
||||
counter = @findEmojiIcon(emoji).siblings(".counter")
|
||||
emojiIcon = counter.parent()
|
||||
if parseInt(counter.text()) > 0
|
||||
if parseInt(counter.text()) > 1
|
||||
counter.text(parseInt(counter.text()) - 1)
|
||||
emojiIcon.removeClass("active")
|
||||
@removeMeFromAuthorList(emoji)
|
||||
|
|
Loading…
Reference in New Issue