Skip to content

Commit f71d7a8

Browse files
committed
build fix
1 parent 62184df commit f71d7a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utils/agentRegistration/transformAgentRegistrationRecord.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { parseAgentRegistrationKey } from './parseAgentRegistrationKey'
99

1010
export interface AgentRegistrationRecord {
1111
key: string
12+
value: string // Required by ProfileSection component
1213
agentId: string
1314
chainId: number
1415
chainName: string
@@ -40,15 +41,18 @@ export function transformAgentRegistrationRecord(
4041
const registryDisplayName = knownName ?? shortenAddress(decoded.address, 13, 6, 4)
4142
const explorerUrl = buildAddressExplorerUrl(chainInfo.explorerUrl, decoded.address)
4243

44+
const displayValue = `id: ${parsed.agentId} | registry: ${registryDisplayName}@${chainInfo.name}`
45+
4346
return {
4447
key: record.key,
48+
value: displayValue,
4549
agentId: parsed.agentId,
4650
chainId: decoded.chainId,
4751
chainName: chainInfo.name,
4852
registryAddress: decoded.address,
4953
registryDisplayName,
5054
explorerUrl,
51-
displayValue: `id: ${parsed.agentId} | registry: ${registryDisplayName}@${chainInfo.name}`,
55+
displayValue,
5256
iconKey: 'agent',
5357
}
5458
}

0 commit comments

Comments
 (0)