Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
msramalho committed Jan 21, 2021
1 parent 53bd120 commit 8a9244a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/components/elections/Candidates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ export default {
},
displayHateSpeech() {
let tracesHate = this.candidateNames.map((cand, i) => {
if (cand._id == "0") return {};
let c = this.hatespeech.candidates[cand._id];
return {
x: this.x,
Expand All @@ -429,6 +430,7 @@ export default {
.filter((v, i, a) => a.indexOf(v) === i); //unique minority keys
let all_minority_values = [];
let data = this.candidateNames.map((cand, i) => {
if (cand._id == "0") return {};
let percent = this.hatespeech.candidates[cand._id].stats
.minorities_totals_percent;
all_minority_values.push(minorities.map((min) => percent[min] ?? 0));
Expand Down

0 comments on commit 8a9244a

Please sign in to comment.