Skip to content

Commit

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

0 comments on commit 235d207

Please sign in to comment.