diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb index 403828c2b..6cb5e5985 100644 --- a/app/controllers/notifications_controller.rb +++ b/app/controllers/notifications_controller.rb @@ -1,10 +1,10 @@ class NotificationsController < ApplicationController def index - set_page_and_extract_portion_from Current.user.notifications.read.ordered - if @page.first? @unread = Current.user.notifications.unread.ordered end + + set_page_and_extract_portion_from Current.user.notifications.read.ordered end def mark_read