diff --git a/frontend/src/components/opportunities/OpportunityContacts.tsx b/frontend/src/components/opportunities/OpportunityContacts.tsx index b9f6728..656664e 100644 --- a/frontend/src/components/opportunities/OpportunityContacts.tsx +++ b/frontend/src/components/opportunities/OpportunityContacts.tsx @@ -393,24 +393,26 @@ export function OpportunityContacts({ : contact.skills.join(" . ") : "n/a" : // If not expanded, show truncated version - contact.skills && contact.skills.length > 0 - ? icp - ? contact.skills - .filter((item) => - icp.tool.include.some( - (el) => - el.toLowerCase() === item.toLowerCase() + contact.skills && contact.skills.length > 0 + ? icp + ? contact.skills + .filter((item) => + icp.tool.include.some( + (el) => + el.toLowerCase() === + item.toLowerCase() + ) ) - ) - .concat( - contact.skills.filter( - (item) => !icp.tool.include.includes(item) + .concat( + contact.skills.filter( + (item) => + !icp.tool.include.includes(item) + ) ) - ) - .slice(0, 5) // Show only the first skill - .join(" · ") - : contact.skills.slice(0, 1).join(" . ") - : "n/a"} + .slice(0, 5) // Show only the first skill + .join(" · ") + : contact.skills.slice(0, 1).join(" . ") + : "n/a"}
{contact.skills && contact.skills.length > 3 && (