Skip to content

Commit

Permalink
Formatering igjen
Browse files Browse the repository at this point in the history
  • Loading branch information
oddsve committed Oct 16, 2024
1 parent 018affa commit 013c49f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion frontend/src/hooks/staffing/useSelectedWeek.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export function useSelectedWeek() {
})
: DateTime.now();
//finds thursday in week. allways correct year
const newDate = date.plus({ week: numberOfWeeks }).plus({ day: - date.weekday + 4 });
const newDate = date
.plus({ week: numberOfWeeks })
.plus({ day: -date.weekday + 4 });

updateFilters({
week: { year: newDate.year, weekNumber: newDate.weekNumber },
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/hooks/useWeekSelectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ export function useWeekSelectors() {
})
: DateTime.now();
//finds thursday in week. allways correct year
const newDate = date.plus({ week: numberOfWeeks }).plus({ day: - date.weekday + 4 });
const newDate = date
.plus({ week: numberOfWeeks })
.plus({ day: -date.weekday + 4 });
setSelectedWeek({ year: newDate.year, weekNumber: newDate.weekNumber });
}

Expand Down

0 comments on commit 013c49f

Please sign in to comment.