Skip to content

Commit

Permalink
Hotfix calendar annotating days outside of the month
Browse files Browse the repository at this point in the history
  • Loading branch information
RunoBoy committed May 23, 2024
1 parent b68c5ec commit e237a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/[locale]/components/ProjectCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const ProjectCalendar: React.FC = () => {
function customDay(props: PickersDayProps<Date> & { highlightedDays?: number[] }) {
const { highlightedDays = [], day, outsideCurrentMonth, ...other } = props;

const isHighlighted = highlightedDays.includes(day.getDate());
const isHighlighted = !outsideCurrentMonth && highlightedDays.includes(day.getDate());

return (
<Badge
Expand Down

0 comments on commit e237a6c

Please sign in to comment.