diff --git a/packages/desktop-client/src/components/reports/reportRanges.ts b/packages/desktop-client/src/components/reports/reportRanges.ts index 52a79c1d211..6d389e84086 100644 --- a/packages/desktop-client/src/components/reports/reportRanges.ts +++ b/packages/desktop-client/src/components/reports/reportRanges.ts @@ -115,7 +115,7 @@ function boundedRange( return [start, end]; } -export function getSpecificRange(offset: number, addNumber: number) { +export function getSpecificRange(offset: number, addNumber: number | null) { const currentDay = monthUtils.currentDay(); const dateStart = monthUtils.subMonths(currentDay, offset) + '-01'; const dateEnd = monthUtils.getMonthEnd(