start fixing commong

This commit is contained in:
Matteo Pagliazzi
2019-10-09 16:51:17 +02:00
parent 9cd43db401
commit 0c27fb24a5
76 changed files with 442 additions and 275 deletions

View File

@@ -16,6 +16,8 @@ function markNotificationAsRead (user, cardType) {
&& notification.data
&& notification.data.card === cardType
) return true;
return false;
});
if (indexToRemove !== -1) user.notifications.splice(indexToRemove, 1);