mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 04:34:15 -04:00
(admin) fix timesheets monthly sum
This commit is contained in:
parent
dd0beed540
commit
240c67e727
@ -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]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user