Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix date picker max not working
  • Loading branch information
regalijan committed Feb 28, 2024
1 parent eebec09 commit 5f86cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/book-event.tsx
Expand Up @@ -52,7 +52,7 @@ export default function () {
`${currentYear}-${currentMonth.toString().padStart(2, "0")}-01`,
);
setDatePickerMax(
`${currentYear}-${currentMonth.toString().padStart(2, "0")}-${currentDate.getUTCDate().toString().padStart(2, "0")}`,
`${currentYear}-${currentMonth.toString().padStart(2, "0")}-${new Date(currentYear, currentMonth, 0).getUTCDate()}`,
);
}, []);

Expand Down

0 comments on commit 5f86cc4

Please sign in to comment.