瀏覽代碼

chore: cleanup

Adam 8 月之前
父節點
當前提交
44b773a6f6
共有 1 個文件被更改,包括 0 次插入6 次删除
  1. 0 6
      packages/app/src/pages/layout.tsx

+ 0 - 6
packages/app/src/pages/layout.tsx

@@ -123,15 +123,9 @@ export default function Layout(props: ParentProps) {
     const bUpdated = b.time.updated ?? b.time.created
     const aRecent = aUpdated > oneMinuteAgo
     const bRecent = bUpdated > oneMinuteAgo
-
-    // If both are recent (within last minute), sort by ID to prevent jumping
     if (aRecent && bRecent) return a.id.localeCompare(b.id)
-
-    // Recent sessions come before non-recent
     if (aRecent && !bRecent) return -1
     if (!aRecent && bRecent) return 1
-
-    // Neither is recent, sort by update time descending
     return bUpdated - aUpdated
   }