fixed manager detection

This commit is contained in:
2025-11-05 09:43:28 +01:00
parent d0be1b4a61
commit c6dfa5b4c6

View File

@@ -932,7 +932,7 @@ const ShiftPlanView: React.FC = () => {
if (employee.isTrainee) { if (employee.isTrainee) {
backgroundColor = '#cda8f0'; // Trainee backgroundColor = '#cda8f0'; // Trainee
} else if (employee.roles?.includes('manager')) { } else if (employee.employeeType === 'manager') {
backgroundColor = '#CC0000'; // Manager backgroundColor = '#CC0000'; // Manager
} }