mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-28 11:40:11 +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