Skip to content
Permalink
Browse files

Fix #10202 (#10203)

  • Loading branch information...
rinsuki authored and Gargron committed Mar 7, 2019
1 parent 96f905f commit f44091d6535463e08a90dbf3d108540bf587cec1
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/stream_entries/_poll.html.haml
@@ -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><

0 comments on commit f44091d

Please sign in to comment.
You can’t perform that action at this time.