Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
jazairi committed Feb 6, 2024
1 parent 00608d6 commit 67b4005
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/results_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module ResultsHelper
def results_summary(hits)
hits.to_i >= 10000 ? '10,000+ items' : "#{number_with_delimiter(hits)} items"
hits.to_i >= 10_000 ? '10,000+ items' : "#{number_with_delimiter(hits)} items"
end
end
2 changes: 1 addition & 1 deletion app/views/search/_filter.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div class="category">
<button class="filter-label <%= 'expanded' if @enhanced_query[category.to_sym].present? || first == true %>"
onClick="toggleFilter(this)"><%= nice_labels[category] || category %></button>
onclick="toggleFilter(this)"><%= nice_labels[category] || category %></button>
<div class="filter-options">
<ul class="category-terms list-unbulleted">
<% values.each do |term| %>
Expand Down

0 comments on commit 67b4005

Please sign in to comment.