interface: address hunter review

This commit is contained in:
Liam Fitzgerald 2022-03-31 10:56:40 -06:00
parent 75a2c2b979
commit 58cd0bd4f3

View File

@ -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 (