diff --git a/frontend/src/app/boards/[boardId]/edit/page.tsx b/frontend/src/app/boards/[boardId]/edit/page.tsx index 7112bec..966a070 100644 --- a/frontend/src/app/boards/[boardId]/edit/page.tsx +++ b/frontend/src/app/boards/[boardId]/edit/page.tsx @@ -111,10 +111,11 @@ function WebhookCard({ const trimmedDescription = draftDescription.trim(); const isDescriptionChanged = trimmedDescription !== webhook.description.trim(); - const isAgentChanged = draftAgentValue !== (webhook.agent_id ?? LEAD_AGENT_VALUE); + const isAgentChanged = + draftAgentValue !== (webhook.agent_id ?? LEAD_AGENT_VALUE); const isChanged = isDescriptionChanged || isAgentChanged; const mappedAgent = webhook.agent_id - ? agents.find((agent) => agent.id === webhook.agent_id) ?? null + ? (agents.find((agent) => agent.id === webhook.agent_id) ?? null) : null; const handleSave = async () => { @@ -243,7 +244,10 @@ function WebhookCard({ ) : ( <>
- +

Recipient: {mappedAgent?.name ?? "Lead agent"}