From e315316c07d044ada7ebee7c73a9b3fd06f9ad9e Mon Sep 17 00:00:00 2001 From: CDP21 <132059856+c2d13p@users.noreply.github.com> Date: Fri, 6 Dec 2024 11:07:21 +0000 Subject: [PATCH] only show pi if internal or not local coordinator --- widgets/src/components/HomeGrantList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/src/components/HomeGrantList.js b/widgets/src/components/HomeGrantList.js index a2d3b8a..336a082 100644 --- a/widgets/src/components/HomeGrantList.js +++ b/widgets/src/components/HomeGrantList.js @@ -67,7 +67,7 @@ function GrantBox({ grant }) { ({grant.projectType}) - { grant.pi && grant.pi.firstName && + { grant.pi && grant.pi.firstName && (grant.pi.staff[0]?.isInternal || !grant.localCoordinator) &&
Principal Investigator: {grant.pi.firstName} {grant.pi.lastName}
} { grant.localCoordinator && grant.localCoordinator.firstName && (grant.localCoordinator._id !== grant.pi._id) &&