Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
chore: add extra check before rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikxox committed May 22, 2022
1 parent 323faee commit 0cb8b5b
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions frontend/components/projects/ProjectTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -817,12 +817,22 @@ const ProjectAssignmentsList: React.FC<AssignmentProp> = ({
</span>
</div>
</div>
<p className="my-1 inline bg-gray-300 px-1 text-sm">
{assignment.position.skill.skillName}
</p>
<p className="text-xs opacity-40">
Suggested by {assignment.suggester.username}
</p>

{assignment &&
assignment.position &&
assignment.position.skill &&
assignment.position.skill.skillName && (
<p className="my-1 inline bg-gray-300 px-1 text-sm">
{assignment.position.skill.skillName}
</p>
)}
{assignment &&
assignment.suggester &&
assignment.suggester.username && (
<p className="text-xs opacity-40">
Suggested by {assignment.suggester.username}
</p>
)}
</div>
<div className="flex flex-col justify-center">
<i
Expand Down

0 comments on commit 0cb8b5b

Please sign in to comment.