From e7886368d893757c53f0400c44b97df4afce6cfb Mon Sep 17 00:00:00 2001
From: shri
Date: Wed, 8 Jan 2025 13:58:49 +0100
Subject: [PATCH] Fix formatting
---
.../opportunities/OpportunityContacts.tsx | 34 ++++++++++---------
1 file changed, 18 insertions(+), 16 deletions(-)
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 && (