Commit 9ff88aa2 authored by Filipa Lacerda's avatar Filipa Lacerda

[ci skip] Uses jquery to get correct note in awards

parent cefc0af1
......@@ -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');
......
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