diff --git a/libs/report/committers/src/lib/parse-monthly.ts b/libs/report/committers/src/lib/parse-monthly.ts index 23e59af..3c81da9 100644 --- a/libs/report/committers/src/lib/parse-monthly.ts +++ b/libs/report/committers/src/lib/parse-monthly.ts @@ -8,11 +8,7 @@ export function parseMonthly(startDate: Date, endDate: Date, entries: Commit[]) end: endDate, }); - for (const idxr in range) { - const idx = parseInt(idxr); - if (idx + 1 >= range.length) { - continue; - } + for (let idx = 0; idx < range.length - 1; idx++) { const [start, end] = [range[idx], range[idx + 1]]; const month: MonthlyData = { month: format(start, 'LLLL yyyy'),