mirror of
https://github.com/urbit/shrub.git
synced 2024-12-20 01:01:37 +03:00
links-js: calculate header unread count correctly
This commit is contained in:
parent
77925b06be
commit
48ae088bbd
@ -55,8 +55,8 @@ export class LinksApp extends Component {
|
||||
const seen = props.linksSeen ? props.linksSeen : {};
|
||||
|
||||
const totalUnseen = _.reduce(
|
||||
seen,
|
||||
(acc, links) => acc + _.reduce(links, (total, hasSeen) => total + (hasSeen ? 0 : 1), 0),
|
||||
links,
|
||||
(acc, collection) => acc + collection.unseenCount,
|
||||
0
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user