From aa1ce8d1856cfe4f5f62334345e97c63c91b5545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Bj=C3=B8ralt?= Date: Wed, 8 Nov 2023 14:10:05 +0100 Subject: [PATCH] fix other weekspan --- frontend/src/hooks/useFilteredConsultants.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }, });