diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb index 517199e93..e3aff82e6 100644 --- a/app/controllers/notifications_controller.rb +++ b/app/controllers/notifications_controller.rb @@ -3,7 +3,7 @@ class NotificationsController < ApplicationController if current_user.blank? redirect_to root_path else - current_user.newest_active_unread_notification.mark_as_read! for: current_user + current_user.newest_active_unread_notification.mark_as_read! for: current_user if current_user.newest_active_unread_notification.present? redirect_back(fallback_location: root_path) end end