Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rinsuki authored and Gargron committed Mar 7, 2019
1 parent cab2e1d commit bc1cafc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/stream_entries/_poll.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- options.each do |option|
%li
- if show_results
- percent = 100 * option.votes_count / poll.votes_count
- percent = poll.votes_count > 0 ? 100 * option.votes_count / poll.votes_count : 0
%span.poll__chart{ style: "width: #{percent}%" }

%label.poll__text><
Expand Down

0 comments on commit bc1cafc

Please sign in to comment.