diff --git a/app/views/govuk_publishing_components/components/_subscription-links.html.erb b/app/views/govuk_publishing_components/components/_subscription-links.html.erb index 56335f7b4d..14533c528a 100644 --- a/app/views/govuk_publishing_components/components/_subscription-links.html.erb +++ b/app/views/govuk_publishing_components/components/_subscription-links.html.erb @@ -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 %>