diff --git a/frontend/src/hooks/useFilteredConsultants.ts b/frontend/src/hooks/useFilteredConsultants.ts index 35fce003..33a655b9 100644 --- a/frontend/src/hooks/useFilteredConsultants.ts +++ b/frontend/src/hooks/useFilteredConsultants.ts @@ -76,7 +76,7 @@ export function useFilteredConsultants() { }) : DateTime.now(); - let newDate = date.plus({ week: weekSpan - 1 }); //TODO: change to shownWeeks when week filter is added + let newDate = date.plus({ week: weekSpan - 1 }); updateRoute({ week: { year: newDate.year, weekNumber: newDate.weekNumber }, }); @@ -90,7 +90,7 @@ export function useFilteredConsultants() { }) : DateTime.now(); - let newDate = date.plus({ week: -7 }); + let newDate = date.plus({ week: weekSpan - 1 }); updateRoute({ week: { year: newDate.year, weekNumber: newDate.weekNumber }, });