Skip to content

Commit 1ac313e

Browse files
Fix unsubscribe template rendering issue for campaign messages on /hub/automated_messages/ page (#6160)
Co-authored-by: Tahsina Islam <[email protected]>
1 parent 7b77e5b commit 1ac313e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/concerns/campaign_email_subscription_updater_concern.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def update_campaign_contact_email_opt_in(opt_in:)
1616

1717
if contact.nil?
1818
flash[:alert] = I18n.t("notifications_settings.no_record")
19-
return render :campaign_email_preferences
19+
return render :unsubscribe_from_campaign_emails
2020
end
2121

2222
contact.update!(email_notification_opt_in: opt_in)

0 commit comments

Comments
 (0)