mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 10:21:31 +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) {
|
if (!first || !charge) {
|
||||||
return null;
|
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 contents = map(orderedByTime, 'content').filter((c) => c.length > 0);
|
||||||
const large = contents.length === 0;
|
const large = contents.length === 0;
|
||||||
const archive = () => {
|
const archive = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user