Skip to content

Commit

Permalink
Normalise falsey values to nil to prevent lang="false"
Browse files Browse the repository at this point in the history
  • Loading branch information
injms committed Aug 5, 2019
1 parent 69211a8 commit b625347
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

hide_heading ||= false

email_signup_link_text_locale = local_assigns[:email_signup_link_text_locale]
feed_link_text_locale = local_assigns[:feed_link_text_locale]
email_signup_link_text_locale = local_assigns[:email_signup_link_text_locale].present? ? local_assigns[:email_signup_link_text_locale] : nil
feed_link_text_locale = local_assigns[:feed_link_text_locale].present? ? local_assigns[:feed_link_text_locale] : nil
%>
<% if sl_helper.component_data_is_valid? %>
<%= tag.section class: css_classes, data: data do %>
Expand Down

0 comments on commit b625347

Please sign in to comment.