(admin) fix timesheets monthly sum

This commit is contained in:
Andrea Vos 2025-01-13 23:21:02 +01:00
parent dd0beed540
commit 240c67e727

View File

@ -136,7 +136,7 @@ const cellKeydown = (e: KeyboardEvent) => {
const sumCells = (area: typeof areas[number] | undefined, month: keyof typeof months | undefined) => {
let sum = 0;
for (const m of Object.keys(timesheet.value[year.value])) {
if (month !== undefined && parseInt(m) !== month) {
if (month !== undefined && parseInt(m) !== parseInt(month as any as string)) {
continue;
}
for (const a in timesheet.value[year.value][m]) {