Skip to content

Commit

Permalink
fix: add dep
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed Jan 17, 2024
1 parent e52bd58 commit 3f08a96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const DaySelector: React.FC<DaySelectorProps> = ({

useEffect(() => {
onSelectDay(selectedDays);
}, [selectedDays]);
}, [onSelectDay, selectedDays]);

const handleChange = (dayIndex: number) => (event: React.ChangeEvent<HTMLInputElement>) => {
const newSelectedDays = [...selectedDays];
Expand Down

0 comments on commit 3f08a96

Please sign in to comment.