Correcting the condition to fetch the unread notifications.