groups: remove TODO about harkbody def, fix in separate PR

This commit is contained in:
Patrick O'Sullivan 2022-03-29 09:18:57 -05:00
parent 952a05a901
commit 2b784caffc

View File

@ -81,7 +81,6 @@ export function Notification(props: {
const { hovering, bind } = useHovering();
const dedupedBody = uniqBy(notification.body, item => item.link);
// @ts-ignore TODO fix HarkBody definition for time, is string, should be number.
const orderedByTime = dedupedBody.sort((a, b) => b.time - a.time);
const contents = map(orderedByTime, 'content').filter(c => c.length > 0);
const first = notification.body[0];