Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antopalidi committed Sep 8, 2023
1 parent 7f6a9de commit f210b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/cells/decidim/newsletter_agenda/agenda_events_cell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def link_for(attribute)

def social_links
links = []
allowed_networks = theme == "capitalitat" ? ["twitter", "youtube"] : all_handler_attributes.keys.map { |k| k.split("_").first }
allowed_networks = theme == "capitalitat" ? %w(twitter youtube) : all_handler_attributes.keys.map { |k| k.split("_").first }

all_handler_attributes.each do |k, v|
next if v.blank?
Expand Down

0 comments on commit f210b37

Please sign in to comment.