diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb index 9f82a3d3d..b0900eb09 100644 --- a/app/helpers/notifications_helper.rb +++ b/app/helpers/notifications_helper.rb @@ -30,13 +30,13 @@ class NotificationTitleRenderer < Redcarpet::Render::HTML def initialize(options = {}) link_class = "govuk-link" link_class += " govuk-link--inverse" if options[:invert_link_colour] - @bold = options[:bold_all_text] + @bold = options[:bold_all_text] # rubocop:disable Rails/HelperInstanceVariable base_options = { escape_html: true, safe_links_only: true, link_attributes: { class: link_class } } super base_options end def paragraph(text) - return %(
#{text}
) if @bold + return %(#{text}
) if @bold # rubocop:disable Rails/HelperInstanceVariable %(#{text}
) end