Commit ce572913 authored by Fatih Acet's avatar Fatih Acet 🙌 Committed by Z.J. van de Weg

Fix mutual exclusivity for emoji only comments.

parent 40c86c91
......@@ -131,7 +131,10 @@ class @AwardsHandler
@createEmoji votesBlock, emoji
getVotesBlock: -> return $ '.js-awards-block.current'
getVotesBlock: ->
currentBlock = $ '.js-awards-block.current'
return if currentBlock.length then currentBlock else $('.js-awards-block').eq 0
getAwardUrl: -> return @getVotesBlock().data 'award-url'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment