diff options
-rw-r--r-- | app/assets/javascripts/notes/components/issue_note_awards_list.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/notes/components/issue_note_awards_list.vue b/app/assets/javascripts/notes/components/issue_note_awards_list.vue index eaaa6cd16b1..1c4bd6f3560 100644 --- a/app/assets/javascripts/notes/components/issue_note_awards_list.vue +++ b/app/assets/javascripts/notes/components/issue_note_awards_list.vue @@ -57,12 +57,13 @@ }, {}); const orderedAwards = {}; + const { thumbsdown, thumbsup } = awards; // Always show thumbsup and thumbsdown first - if (awards.thumbsup) { + if (thumbsup) { orderedAwards.thumbsup = thumbsup; delete awards.thumbsup; } - if (awards.thumbsdown) { + if (thumbsdown) { orderedAwards.thumbsdown = thumbsdown; delete awards.thumbsdown; } |