diff --git a/hypha/apply/funds/views.py b/hypha/apply/funds/views.py index 51eff45830c8e1b0cae7c317b1d13f5141d31e0f..3bb6fa42a00d39e4a7e6ce3f50174fc967f956ab 100644 --- a/hypha/apply/funds/views.py +++ b/hypha/apply/funds/views.py @@ -1795,7 +1795,10 @@ class SubmissionResultView(SubmissionStatsMixin, FilterView): submission_values = self.object_list.value() count_values = submission_values.get("value__count") total_value = intcomma(submission_values.get("value__sum")) - average_value = intcomma(round(submission_values.get("value__avg"))) + if value := submission_values.get("value__avg"): + average_value = intcomma(round(value)) + else: + average_value = 0 else: count_values = 0 total_value = 0