diff --git a/src/modules/timesheets/components/shift-list-day.vue b/src/modules/timesheets/components/shift-list-day.vue index b25afb6..fa0573f 100644 --- a/src/modules/timesheets/components/shift-list-day.vue +++ b/src/modules/timesheets/components/shift-list-day.vue @@ -33,7 +33,6 @@ const timesheet_store = useTimesheetStore(); const preset_mouseover = ref(false); const shift_error_message = ref(); - const employeeEmail = inject('employeeEmail'); // ================== Methods ================== @@ -42,7 +41,7 @@ shift.id = 0; emit('deleteUnsavedShift'); } else { - await shift_api.deleteShiftById(shift.id, employeeEmail); + await shift_api.deleteShiftById(shift.id, timesheet_store.current_pay_period_overview?.email ?? undefined); } if (day.shifts.length < 2 && shift_error_message.value !== undefined) {