@ -3,6 +3,6 @@
<p class="govuk-notification-banner__heading govuk-!-width-full" style="max-width: fit-content">
<%= header_text %>
<p>
<%= second_row %>
<%= banner_text %>
<% end %>
@ -30,7 +30,7 @@ class DataProtectionConfirmationBannerComponent < ViewComponent::Base
end
def second_row
def banner_text
if org_without_dpo? || user.is_dpo?
govuk_link_to(
link_text,
@ -188,7 +188,6 @@ private
def send_data_protection_confirmation_reminder
return unless FeatureToggle.new_data_protection_confirmation?
return unless persisted?
return unless is_dpo_changed?
return unless is_dpo?
DataProtectionConfirmationMailer.send_confirmation_email(self).deliver_later