From 7fb5bfd2428344794d1de0fb0d41aaca7f9d2e91 Mon Sep 17 00:00:00 2001 From: Jared Cosulich Date: Sun, 28 Jul 2019 22:47:00 -0400 Subject: [PATCH] don't fail if info is nil --- app/views/school_categories/_indicator.html.haml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/school_categories/_indicator.html.haml b/app/views/school_categories/_indicator.html.haml index deead51d..6ce204f2 100644 --- a/app/views/school_categories/_indicator.html.haml +++ b/app/views/school_categories/_indicator.html.haml @@ -1,3 +1,4 @@ +- return if info.nil? - likert = info.answer_index_average - zscore = info.zscore.present? ? info.zscore + 3 : nil - likert = zscore if zscore.present?