mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 11:33:41 +03:00
groups: fix sort order in notifications
This commit is contained in:
parent
f194d863c6
commit
a6e196a0fd
@ -81,7 +81,7 @@ export function Notification(props: {
|
||||
|
||||
const { hovering, bind } = useHovering();
|
||||
const dedupedBody = uniqBy(notification.body, item => item.link);
|
||||
const orderedByTime = dedupedBody.sort((a, b) => b.time - a.time);
|
||||
const orderedByTime = dedupedBody.sort((a, b) => a.time - b.time);
|
||||
const contents = map(orderedByTime, 'content').filter(c => c.length > 0);
|
||||
const first = notification.body[0];
|
||||
if (!first) {
|
||||
|
Loading…
Reference in New Issue
Block a user