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

Commit

Permalink
Merge pull request #436 from SELab-2/extra-check
Browse files Browse the repository at this point in the history
add extra check before rendering
  • Loading branch information
Mikxox authored May 22, 2022
2 parents 323faee + 0cb8b5b commit 7201863
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 7201863

Please sign in to comment.