Commit c92881c3 authored by Filipa Lacerda's avatar Filipa Lacerda

[ci skip] Fix broken awards

parent 9ff88aa2
...@@ -57,12 +57,13 @@ ...@@ -57,12 +57,13 @@
}, {}); }, {});
const orderedAwards = {}; const orderedAwards = {};
const { thumbsdown, thumbsup } = awards;
// Always show thumbsup and thumbsdown first // Always show thumbsup and thumbsdown first
if (awards.thumbsup) { if (thumbsup) {
orderedAwards.thumbsup = thumbsup; orderedAwards.thumbsup = thumbsup;
delete awards.thumbsup; delete awards.thumbsup;
} }
if (awards.thumbsdown) { if (thumbsdown) {
orderedAwards.thumbsdown = thumbsdown; orderedAwards.thumbsdown = thumbsdown;
delete awards.thumbsdown; delete awards.thumbsdown;
} }
......
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