+ {/* Primary Manager */}
+
+
Primary Manager:
+
+ {primaryManager
+ ? `${primaryManager.firstName || ""} ${primaryManager.lastName || ""}`
+ : "NA"}
+
+
-
- {/* Primary Reporting Manager */}
-
-
-
- Primary Reporting Manager
-
-
:
-
- {primary?.reportTo?.firstName || NA}{" "}
- {primary?.reportTo?.lastName || ""}
-
+ {/* Secondary Managers */}
+ {secondaryManagers?.length > 0 && (
+
+
Secondary Managers:
+
+ {secondaryManagers
+ .map((m) => `${m.firstName || ""} ${m.lastName || ""}`)
+ .join(", ")}
+
+
+ )}
- {/* Secondary Reporting Manager (comma-separated) */}
- {secondary?.length > 0 && (
-
-
-
- Secondary Reporting Manager
-
- :
-
- {secondaryNames || NA}
-
-
- )}
-
- {/* Open Modal Button */}
-
+ {/* Manage Reporting Button */}
+
- {/* ManageReporting Modal */}
+ {/* Manage Reporting Modal */}
{showManageReportingModal && (
setShowManageReportingModal(false)}
>
setShowManageReportingModal(false)}
/>
-
)}
@@ -87,3 +84,4 @@ const EmpReportingManager = ({ employeeId, employee }) => {
};
export default EmpReportingManager;
+
diff --git a/src/components/Employee/ManageReporting.jsx b/src/components/Employee/ManageReporting.jsx
index c0d2cba6..b9857fea 100644
--- a/src/components/Employee/ManageReporting.jsx
+++ b/src/components/Employee/ManageReporting.jsx
@@ -110,7 +110,7 @@ const ManageReporting = ({ onClosed, employee, employeeId }) => {
{/* Employee Name + Role */}