Skip to content
Snippets Groups Projects
Commit f44091d6 authored by rinsuki's avatar rinsuki Committed by Eugen Rochko
Browse files

Fix #10202 (#10203)

parent 96f905f4
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment