Skip to content

Commit

Permalink
Merge pull request #402 from protofire/fix/poll-detail-mkr-distributi…
Browse files Browse the repository at this point in the history
…on-histogram

Poll Detail - Fix MKR Count by Option histogram
  • Loading branch information
Lisandro authored May 7, 2020
2 parents a06add0 + 73c2f8f commit dff0d8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/PollDetails/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ export const getPollMakerHistogramData = async poll => {
return Promise.all(
votersPerPeriod.map(async period => {
const manualPoll = {
id: poll.id,
endDate: period.endDate,
votes: poll.options.flatMap(pop =>
Array.from(period[pop]).map(voter => ({ option: poll.options.indexOf(pop) + 1, voter })),
Expand Down

0 comments on commit dff0d8c

Please sign in to comment.