Fixes issue where other emoji (not thumbup/thumbdown) were not removed

This commit is contained in:
Jacob Schatz 2016-01-19 15:43:04 -05:00
parent c426a571db
commit e5cbd5885a
1 changed files with 1 additions and 1 deletions

View File

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