Skip to content

Commit

Permalink
remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
CREDO23 committed Aug 23, 2024
1 parent f490bb6 commit f22ca14
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ export function AddTasksEstimationHoursModal(props: IAddTasksEstimationHoursModa
const handleCloseModal = useCallback(() => {
localStorage.setItem(TASKS_ESTIMATE_HOURS_MODAL_DATE, currentDate);
closeModal();
}, [closeModal, currentDate]);
startTimer();
}, [closeModal, currentDate, startTimer]);

const handleSubmit = useCallback(() => {
updateDailyPlan({ workTimePlanned }, plan.id ?? '');
startTimer();
handleCloseModal();
}, [handleCloseModal, plan.id, updateDailyPlan, workTimePlanned]);

Expand All @@ -57,6 +57,7 @@ export function AddTasksEstimationHoursModal(props: IAddTasksEstimationHoursModa
} else {
setWarning(t('dailyPlan.planned_tasks_popup.warning.PLANNED_TIME'));
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [tasksEstimationTimes, workTimePlanned]);

useEffect(() => {
Expand Down

0 comments on commit f22ca14

Please sign in to comment.