diff --git a/app/models/color_scheme.rb b/app/models/color_scheme.rb index bcd7d7c02fe..afb897f9b48 100644 --- a/app/models/color_scheme.rb +++ b/app/models/color_scheme.rb @@ -346,7 +346,7 @@ class ColorScheme < ActiveRecord::Base end def is_dark? - return if colors.empty? + return if colors.to_a.empty? primary_b = brightness(colors_by_name["primary"].hex) secondary_b = brightness(colors_by_name["secondary"].hex)