Skip to content

Commit

Permalink
refactor: 누락된 isNoSchedule state를 dependency array 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
designsoo committed Mar 28, 2024
1 parent a2ee68c commit a90cc43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const ReservationPanel = ({ activityId, maxCount, onClick, isLoggedIn = false }:
if (isNoSchedule) {
setHeadCount(0);
}
}, [headCount]);
}, [headCount, isNoSchedule]);

const handleReservationSubmit = (formData: object) => {
console.log(formData);
Expand Down

0 comments on commit a90cc43

Please sign in to comment.