diff options
Diffstat (limited to 'app/assets/javascripts/awards_handler.js')
-rw-r--r-- | app/assets/javascripts/awards_handler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/awards_handler.js b/app/assets/javascripts/awards_handler.js index 0c884f40963..394e2fae567 100644 --- a/app/assets/javascripts/awards_handler.js +++ b/app/assets/javascripts/awards_handler.js @@ -238,7 +238,7 @@ class AwardsHandler { const isMainAwardsBlock = votesBlock.closest('.js-issue-note-awards').length; if (this.isInIssuePage() && !isMainAwardsBlock) { - const id = votesBlock[0].id.replace('note_', ''); + const id = votesBlock.attr('id').replace('note_', ''); $('.emoji-menu').removeClass('is-visible'); $('.js-add-award.is-active').removeClass('is-active'); |