diff --git a/src/components/Activities/AttendLogs.jsx b/src/components/Activities/AttendLogs.jsx index ec64f5d1..b755d891 100644 --- a/src/components/Activities/AttendLogs.jsx +++ b/src/components/Activities/AttendLogs.jsx @@ -84,13 +84,14 @@ const AttendLogs = ({ Id }) => { document.querySelectorAll('[data-bs-toggle="tooltip"]') ); tooltipTriggerList.forEach((el) => new bootstrap.Tooltip(el)); - }, []); + }, [] ); + console.log(logs[0]?.updatedByEmployee?.firstName) return (
- Attendance for{" "} + Attendance logs for{" "} {logs[0]?.employee?.firstName + " " + logs[0]?.employee?.lastName}{" "} on {logs[0]?.activityTime.slice(0, 10)}{" "}
@@ -106,11 +107,13 @@ const AttendLogs = ({ Id }) => {Date | -Time | -Activity | -Location | -Description | +Date | +Time | +Activity | +Location | +Recored By | +Description | +{log?.latitude != 0 ? ( { "--" )} | -- {log?.comment} + | + {`${logs[0]?.updatedByEmployee?.firstName ?? ''} ${logs[0]?.updatedByEmployee?.lastName ?? ''}`} mahajan | ++ {log?.comment || "--"} + | + ))}
---|