diff --git a/src/question/single_choice.rs b/src/question/single_choice.rs index 4a06f9a..3437a84 100644 --- a/src/question/single_choice.rs +++ b/src/question/single_choice.rs @@ -88,7 +88,7 @@ impl Question for SingleChoiceQuestion { Ok(ViewerTemplate { show_result, name: &self.inner.name, - total_submissions: self.submissions.iter().fold(0, |acc, (_, v)| acc + v), + total_submissions: self.submissions.len() as u32, submissions: &self.submissions.iter().fold( vec![0; self.inner.answers.len()], |mut acc, (_, v)| {