From 235d207b13071b0a169e4cc11c0c5efe3c8d7499 Mon Sep 17 00:00:00 2001 From: shri Date: Fri, 10 Jan 2025 14:25:14 +0100 Subject: [PATCH] Code cleanup --- .../opportunities/OpportunityContacts.tsx | 27 ++++++------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/frontend/src/components/opportunities/OpportunityContacts.tsx b/frontend/src/components/opportunities/OpportunityContacts.tsx index f3cc8df..68fca5e 100644 --- a/frontend/src/components/opportunities/OpportunityContacts.tsx +++ b/frontend/src/components/opportunities/OpportunityContacts.tsx @@ -239,25 +239,14 @@ export function OpportunityContacts({ }`} onClick={() => toggleSkills(index)} // Toggle state for this user > - {expandedSkillIndex === index - ? // If expanded, show all skills - contact.skills && contact.skills.length > 0 - ? icp - ? bringMatchesForward( - contact.skills, - icp.tool.include - ) - : contact.skills.join(" . ") - : "n/a" - : // If not expanded, show truncated version - contact.skills && contact.skills.length > 0 - ? icp - ? bringMatchesForward( - contact.skills, - icp.tool.include - ) - : contact.skills.slice(0, 1).join(" . ") - : "n/a"} + {contact.skills && contact.skills.length > 0 + ? icp + ? bringMatchesForward( + contact.skills, + icp.tool.include + ) + : contact.skills.join(" . ") + : "n/a"}

{contact.skills && contact.skills.length > 3 && (