Skip to content

Commit

Permalink
fix other weekspan
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbjoralt committed Nov 8, 2023
1 parent 513031a commit aa1ce8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/hooks/useFilteredConsultants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
});
Expand All @@ -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 },
});
Expand Down

0 comments on commit aa1ce8d

Please sign in to comment.