mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
start fixing commong
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user