diff --git a/app/views/layouts/base_courses.html.erb b/app/views/layouts/base_courses.html.erb index c8b5a20b0..981d44ce7 100644 --- a/app/views/layouts/base_courses.html.erb +++ b/app/views/layouts/base_courses.html.erb @@ -240,11 +240,11 @@ <% end %> <% hero_homework_scores = hero_homework_score(@course, "desc") %> - <% unless hero_homework_scores.map(&:score).detect{|s| s != nil}.nil? %> + <% unless hero_homework_scores.map(&:score).detect{|s| s.to_i != 0}.nil? %>