grid: fix sort order in notifications

This commit is contained in:
Patrick O'Sullivan 2022-04-01 17:29:27 -05:00
parent e3f2250b02
commit f484ce6da6

View File

@ -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 = () => {