diff --git a/web/app/directory/DirectoryList.tsx b/web/app/directory/DirectoryList.tsx index 7c728885..01dc2ad8 100644 --- a/web/app/directory/DirectoryList.tsx +++ b/web/app/directory/DirectoryList.tsx @@ -18,14 +18,15 @@ export function DirectoryList({ agents, complete }: { agents: DirectoryAgent[]; const index = useMemo(() => buildDirectoryIndex(agents), [agents]); const visible = useMemo(() => searchDirectoryIndex(index, query), [index, query]); - if (agents.length === 0) { - return ( -
-

No verified agents yet.

- Be the first: register your agent -
- ); - } + const hasCompanies = useMemo(() => agents.some((agent) => !agent.official), [agents]); + const firstCompany = ( +
+

No verified companies yet.

+ Be the first company to register +
+ ); + + if (agents.length === 0) return firstCompany; return ( <> @@ -43,7 +44,7 @@ export function DirectoryList({ agents, complete }: { agents: DirectoryAgent[]; />

{visible.length === agents.length - ? `${agents.length} verified ${agents.length === 1 ? 'agent' : 'agents'}${complete ? '' : ' shown'}` + ? `${agents.length} ${agents.length === 1 ? 'agent' : 'agents'}${complete ? '' : ' shown'}` : `${visible.length} of ${agents.length}${complete ? '' : ' shown'}`}

@@ -53,14 +54,16 @@ export function DirectoryList({ agents, complete }: { agents: DirectoryAgent[]; ) : (