this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix notifications grouping bug

+3 -3
+3 -3
src/pages/notifications.jsx
··· 445 445 const cleanNotifications = []; 446 446 for (let i = 0, j = 0; i < notifications.length; i++) { 447 447 const notification = notifications[i]; 448 - const { status, account, type, created_at } = notification; 449 - const createdAt = new Date(created_at).toLocaleDateString(); 450 - const key = `${status?.id}-${type}-${createdAt}`; 448 + const { status, account, type, createdAt } = notification; 449 + const date = new Date(createdAt).toLocaleDateString(); 450 + const key = `${status?.id}-${type}-${date}`; 451 451 const mappedNotification = notificationsMap[key]; 452 452 if (mappedNotification?.account) { 453 453 mappedNotification._accounts.push(account);