diff --git a/pkg/interface/src/views/apps/publish/components/CommentItem.tsx b/pkg/interface/src/views/apps/publish/components/CommentItem.tsx index fbc52236af..289eb18d9c 100644 --- a/pkg/interface/src/views/apps/publish/components/CommentItem.tsx +++ b/pkg/interface/src/views/apps/publish/components/CommentItem.tsx @@ -48,7 +48,7 @@ export function CommentItem(props: CommentItemProps) { showImage contacts={contacts} ship={commentData?.author} - date={commentData["date-created"]} + date={commentData?.["time-sent"]} hideAvatars={props.hideAvatars} hideNicknames={props.hideNicknames} > diff --git a/pkg/interface/src/views/landscape/components/Sidebar/Sidebar.tsx b/pkg/interface/src/views/landscape/components/Sidebar/Sidebar.tsx index 65c2c3fd9c..6205658d77 100644 --- a/pkg/interface/src/views/landscape/components/Sidebar/Sidebar.tsx +++ b/pkg/interface/src/views/landscape/components/Sidebar/Sidebar.tsx @@ -58,7 +58,7 @@ const SidebarStickySpacer = styled(Box)` const inviteItems = (invites, api) => { const returned = []; Object.keys(invites).filter((e) => { - return e !== '/contacts'; + return e !== 'contacts'; }).map((appKey) => { const app = invites[appKey]; Object.keys(app).map((uid) => { @@ -122,12 +122,12 @@ export function Sidebar(props: SidebarProps) { workspace={props.workspace} /> {sidebarInvites} { const aAssoc = associations[a]; const bAssoc = associations[b]; - const aModule = aAssoc?.metadata?.module || aAssoc?.["app-name"]; - const bModule = bAssoc?.metadata?.module || bAssoc?.["app-name"]; + const aAppName = aAssoc?.["app-name"]; + const bAppName = bAssoc?.["app-name"]; - const aUpdated = apps[aModule].lastUpdated(a); - const bUpdated = apps[bModule].lastUpdated(b); + const aUpdated = apps[aAppName].lastUpdated(a); + const bUpdated = apps[bAppName].lastUpdated(b); return bUpdated - aUpdated || alphabetical(a, b); };