diff --git a/apps/chat/components/accounts/profile/index.tsx b/apps/chat/components/accounts/profile/index.tsx index c5608e670..206e23305 100644 --- a/apps/chat/components/accounts/profile/index.tsx +++ b/apps/chat/components/accounts/profile/index.tsx @@ -9,7 +9,7 @@ interface AgentImage { } interface Agent { - id: string; + id: number; name: string; images: AgentImage[]; } @@ -31,6 +31,10 @@ export function AccountProfile({ account }: AccountProps) { const agentUrl = `${origin}/accounts/${account.id}`; const randomAgentImage = account.agents[Math.floor(Math.random() * account.agents.length)]?.images[0].url; + const onDelete = (agentId: number) => { + account.agents = account.agents.filter((agent) => agent.id !== agentId); + }; + return (