mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-12-01 06:55:45 +01:00
fixed manager detection
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user