diff --git a/apps/web/lib/features/daily-plan/add-task-estimation-hours-modal.tsx b/apps/web/lib/features/daily-plan/add-task-estimation-hours-modal.tsx index 1167515fd..19a4aa1e3 100644 --- a/apps/web/lib/features/daily-plan/add-task-estimation-hours-modal.tsx +++ b/apps/web/lib/features/daily-plan/add-task-estimation-hours-modal.tsx @@ -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]); @@ -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(() => {