diff --git a/app/components/shared/recommended_index_component.html.erb b/app/components/shared/recommended_index_component.html.erb
index 7432bf193..713f6478a 100644
--- a/app/components/shared/recommended_index_component.html.erb
+++ b/app/components/shared/recommended_index_component.html.erb
@@ -16,10 +16,10 @@
<%= t("shared.recommended_index.hide") %>
<% end %>
- <% recommended.each do |recommended| %>
+ <% recommendations.each do |recommendation| %>
-
<%= link_to recommended.title, polymorphic_path(recommended) %>
+ <%= link_to recommendation.title, polymorphic_path(recommendation) %>
<% end %>
diff --git a/app/components/shared/recommended_index_component.rb b/app/components/shared/recommended_index_component.rb
index cbace8337..439f69989 100644
--- a/app/components/shared/recommended_index_component.rb
+++ b/app/components/shared/recommended_index_component.rb
@@ -1,14 +1,14 @@
class Shared::RecommendedIndexComponent < ApplicationComponent
- attr_reader :recommended, :disable_recommendations_path, :namespace
+ attr_reader :recommendations, :disable_recommendations_path, :namespace
use_helpers :current_path_with_query_params
- def initialize(recommended, disable_recommendations_path:, namespace:)
- @recommended = recommended
+ def initialize(recommendations, disable_recommendations_path:, namespace:)
+ @recommendations = recommendations
@disable_recommendations_path = disable_recommendations_path
@namespace = namespace
end
def render?
- feature?("user.recommendations") && recommended.present?
+ feature?("user.recommendations") && recommendations.present?
end
end