Fixed typo.

This commit is contained in:
Bianca Nenciu 2017-03-01 23:02:29 +02:00
parent fdf749770b
commit 2c22a7f78b
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ export default {
const staleIndex = _.findIndex(oldNotifications, {id: lastNotification.id}); const staleIndex = _.findIndex(oldNotifications, {id: lastNotification.id});
if (staleIndex === -1) { if (staleIndex === -1) {
// this gets a bit tricky, uread pms are bumped to front // this gets a bit tricky, unread pms are bumped to front
let insertPosition = 0; let insertPosition = 0;
if (lastNotification.notification_type !== 6) { if (lastNotification.notification_type !== 6) {
insertPosition = _.findIndex(oldNotifications, n => n.notification_type !== 6 || n.read); insertPosition = _.findIndex(oldNotifications, n => n.notification_type !== 6 || n.read);