mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 03:23:09 +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