Merge pull request 'fix(timesheet): attempt to fix issue where employee email is not passed properly' (#70) from dev/nicolas/staging-prep into main

Reviewed-on: Targo/targo_frontend#70
This commit is contained in:
Nicolas 2026-01-27 15:13:19 -05:00
commit ac6fc077e4

View File

@ -33,7 +33,6 @@
const timesheet_store = useTimesheetStore(); const timesheet_store = useTimesheetStore();
const preset_mouseover = ref(false); const preset_mouseover = ref(false);
const shift_error_message = ref<string | undefined>(); const shift_error_message = ref<string | undefined>();
const employeeEmail = inject<string>('employeeEmail');
// ================== Methods ================== // ================== Methods ==================
@ -42,7 +41,7 @@
shift.id = 0; shift.id = 0;
emit('deleteUnsavedShift'); emit('deleteUnsavedShift');
} else { } 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) { if (day.shifts.length < 2 && shift_error_message.value !== undefined) {