Skip to content

Commit

Permalink
only show pi if internal or not local coordinator
Browse files Browse the repository at this point in the history
  • Loading branch information
c2d13p committed Dec 6, 2024
1 parent c2211e3 commit e315316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widgets/src/components/HomeGrantList.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function GrantBox({ grant }) {
</a>
<small className="text-muted"> ({grant.projectType})</small>
</h2>
{ grant.pi && grant.pi.firstName &&
{ grant.pi && grant.pi.firstName && (grant.pi.staff[0]?.isInternal || !grant.localCoordinator) &&
<div className="subtitle_style fas fa-user"> Principal Investigator: {grant.pi.firstName} {grant.pi.lastName} </div>
}
{ grant.localCoordinator && grant.localCoordinator.firstName && (grant.localCoordinator._id !== grant.pi._id) &&
Expand Down

0 comments on commit e315316

Please sign in to comment.