mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix broken qunit tests.
This commit is contained in:
@@ -190,7 +190,7 @@ createWidget('discourse-poll-standard-results', {
|
||||
return ordered.map((option, idx) => {
|
||||
const contents = [];
|
||||
const per = rounded[idx].toString();
|
||||
const chosen = attrs.vote.includes(option.id);
|
||||
const chosen = (attrs.vote || []).includes(option.id);
|
||||
|
||||
contents.push(h('div.option',
|
||||
h('p', [ h('span.percentage', `${per}%`), optionHtml(option) ])
|
||||
|
||||
Reference in New Issue
Block a user