diff --git a/frontend/src/components/TimerWidget.tsx b/frontend/src/components/TimerWidget.tsx index f8f400e..4915303 100644 --- a/frontend/src/components/TimerWidget.tsx +++ b/frontend/src/components/TimerWidget.tsx @@ -56,7 +56,6 @@ export function TimerWidget() { const { projects } = useProjects(); const [showProjectSelect, setShowProjectSelect] = useState(false); const [error, setError] = useState(null); - const [confirmCancel, setConfirmCancel] = useState(false); // Start time editing state const [editingStartTime, setEditingStartTime] = useState(false); @@ -74,7 +73,6 @@ export function TimerWidget() { const handleStop = async () => { setError(null); - setConfirmCancel(false); try { await stopTimer(); } catch (err) { @@ -86,7 +84,6 @@ export function TimerWidget() { setError(null); try { await cancelTimer(); - setConfirmCancel(false); } catch (err) { setError(err instanceof Error ? err.message : "Failed to cancel timer"); } @@ -210,41 +207,20 @@ export function TimerWidget() { {/* Stop + Cancel Buttons */}
- {confirmCancel ? ( -
- Discard timer? - - -
- ) : ( - <> - - - - )} + +