From a90cf41f7924d2997f848a538ee7ffe1c539748c Mon Sep 17 00:00:00 2001 From: Jared Cosulich Date: Wed, 18 Oct 2017 13:27:48 -0400 Subject: [PATCH] trying to fix bug --- app/views/school_categories/_indicator.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/school_categories/_indicator.html.haml b/app/views/school_categories/_indicator.html.haml index cbeb6cef..c4d7e72d 100644 --- a/app/views/school_categories/_indicator.html.haml +++ b/app/views/school_categories/_indicator.html.haml @@ -1,5 +1,5 @@ - num_likerts = 5 -- likert = info.answer_index_average +- likert = info.answer_index_average || 0 - average_offset = (likert/num_likerts) * 100 - approval_zone = [[76, 90], [77, 91], [71, 85], [73, 86], [73, 86], []][info.category.root_index]