fix: guard profile usage fallback labels

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-04-19 22:25:52 -05:00
1 parent ebfaf499ad
commit a32ebe4e96
1 file changed
+2 -2
+2 -2
View File
@@ -216,8 +216,8 @@ export function UserProfile() {
const agentUsageRows = useMemo<UsageRow[]>(
() =>
(data?.topAgents ?? []).map((row) => ({
key: row.agentId,
label: row.agentName ?? row.agentId.slice(0, 8),
key: row.agentId ?? "unknown",
label: row.agentName ?? (row.agentId ? row.agentId.slice(0, 8) : "unknown"),
sublabel: "Issue-linked usage",
costCents: row.costCents,
inputTokens: row.inputTokens,