mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 18:01:32 +03:00
grid: fix sort order in notifications
This commit is contained in:
parent
e3f2250b02
commit
f484ce6da6
@ -40,7 +40,7 @@ export const BasicNotification = ({ notification, lid }: BasicNotificationProps)
|
||||
if (!first || !charge) {
|
||||
return null;
|
||||
}
|
||||
const orderedByTime = notification.body.sort((a, b) => b.time - a.time);
|
||||
const orderedByTime = notification.body.sort((a, b) => a.time - b.time);
|
||||
const contents = map(orderedByTime, 'content').filter((c) => c.length > 0);
|
||||
const large = contents.length === 0;
|
||||
const archive = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user