diff --git a/frontend/src/component/personalDashboard/MyProjects.tsx b/frontend/src/component/personalDashboard/MyProjects.tsx index 629ebe4941..090b64d5c3 100644 --- a/frontend/src/component/personalDashboard/MyProjects.tsx +++ b/frontend/src/component/personalDashboard/MyProjects.tsx @@ -163,10 +163,12 @@ export const MyProjects: FC<{ - {activeProject ? ( + {personalDashboardProjectDetails ? ( role.name, + )} + owners={personalDashboardProjectDetails.owners} /> ) : null} diff --git a/frontend/src/component/personalDashboard/RoleAndOwnerInfo.tsx b/frontend/src/component/personalDashboard/RoleAndOwnerInfo.tsx index f9d112cdc8..645b04e4e1 100644 --- a/frontend/src/component/personalDashboard/RoleAndOwnerInfo.tsx +++ b/frontend/src/component/personalDashboard/RoleAndOwnerInfo.tsx @@ -25,12 +25,18 @@ export const RoleAndOwnerInfo = ({ roles, owners }: Props) => { return ( - Your roles in this project: - {roles.map((role) => ( - - {role} - - ))} + {roles.length > 0 ? ( + <> + Your roles in this project: + {roles.map((role) => ( + + {role} + + ))} + + ) : ( + You have no project roles in this project. + )} Project owner{owners.length > 1 ? 's' : ''}