Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
shrir committed Jan 8, 2025
1 parent d7a57c1 commit e788636
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions frontend/src/components/opportunities/OpportunityContacts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
</p>
{contact.skills && contact.skills.length > 3 && (
<button
Expand Down

0 comments on commit e788636

Please sign in to comment.