diff --git a/lib/librarix/filter.rb b/lib/librarix/filter.rb index 71538eb..6a65743 100644 --- a/lib/librarix/filter.rb +++ b/lib/librarix/filter.rb @@ -72,7 +72,7 @@ module Librarix end def maybe_search? - movies.empty? && params.key?('title') + movies.all? { |k,v| v.empty? } && params.key?('title') end end end