Commit f44091d6 authored by rinsuki's avatar rinsuki Committed by Eugen Rochko

Fix #10202 (#10203)

parent 96f905f4
......@@ -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><
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment