Skip to content

Commit

Permalink
Update @navikt/core/react/src/date/hooks/useDatepicker.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh authored Mar 20, 2024
1 parent b75f54f commit d5967b5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion @navikt/core/react/src/date/hooks/useDatepicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ export const useDatepicker = (
fromDate && day && differenceInCalendarDays(fromDate, day) > 0;
const isAfter = toDate && day && differenceInCalendarDays(day, toDate) > 0;


if (
!isValidDate(day) ||
(disableWeekends && isWeekend(day)) ||
Expand Down

0 comments on commit d5967b5

Please sign in to comment.