diff --git a/pkg/interface/src/views/landscape/components/Sidebar/SidebarList.tsx b/pkg/interface/src/views/landscape/components/Sidebar/SidebarList.tsx index 08759f19c..112a54c50 100644 --- a/pkg/interface/src/views/landscape/components/Sidebar/SidebarList.tsx +++ b/pkg/interface/src/views/landscape/components/Sidebar/SidebarList.tsx @@ -33,8 +33,9 @@ function sidebarSort( const bAppName = bAssoc?.['app-name']; const aUpdated = a.startsWith('~') - ? (inboxUnreads?.[`/${patp2dec(a)}`]?.last) + ? (inboxUnreads?.[`/${patp2dec(a)}`]?.last || 0) : (apps[aAppName]?.lastUpdated(a) || 0); + const bUpdated = b.startsWith('~') ? (inboxUnreads?.[`/${patp2dec(b)}`]?.last || 0) : (apps[bAppName]?.lastUpdated(b) || 0);