Skip to content
Snippets Groups Projects
Commit 30a1d0d8 authored by Oleksandr Zhurbenko's avatar Oleksandr Zhurbenko
Browse files

Fixed a bug with publishing a custom poll containing just one answer

parent 8b6ebe63
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ class @WhiteboardPollModel extends WhiteboardToolModel
textArray = []
#creating an array of text objects for the labels, percentages and number inside line bars
if startingData.result? and startingData.result.length > 1
if startingData.result?
#counting the total number of votes and finding the biggest number of votes
for i in [0..startingData.result.length-1]
votesTotal += startingData.result[i].num_votes
......
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