mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 11:33:41 +03:00
interface: address hunter review
This commit is contained in:
parent
75a2c2b979
commit
58cd0bd4f3
@ -54,7 +54,9 @@ export function SidebarListHeader(props: {
|
||||
const feedPath = groupPath ? getFeedPath(associations.groups[groupPath]) : undefined;
|
||||
|
||||
const unreadCount = useHarkState(
|
||||
s => s.unreads?.[`/graph/${feedPath.slice(6)}` ?? '']?.count as number ?? 0
|
||||
s => feedPath
|
||||
? (s.unreads?.[`/graph/${feedPath.slice(6)}` ?? '']?.count as number ?? 0)
|
||||
: 0
|
||||
);
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user