Skip to content

Commit bccf993

Browse files
committed
FIX - Acummulated time display reset
1 parent 47596d5 commit bccf993

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/features/timer/ui/CountdownTimer/CountdownTimer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ const CountdownTimer = ({ categories, tasks, projects, pomodoros }: CountdownTim
107107
});
108108
toast.success('Pomodoro saved correctly.');
109109

110-
// Acumular el tiempo trabajado de esta sesión
111-
setSessionStartSeconds(prev => prev + sessionWorkedSeconds);
110+
// Reiniciar acumulado
112111
resetTimer();
113-
112+
setSessionStartSeconds(0);
113+
114114
} catch (error) {
115115
console.error('Error making pomodoro:', error);
116116
toast.error('Error saving pomodoro');

0 commit comments

Comments
 (0)