From 175c6a1d7e994ea4e8339eae1b1bf1355e152124 Mon Sep 17 00:00:00 2001 From: Chris Veleris Date: Tue, 16 Sep 2025 17:54:30 +0300 Subject: [PATCH] Remove duplicate toaster --- frontend/components/Productivity/ProductivityAssistant.tsx | 3 --- frontend/components/Task/TaskDetails.tsx | 3 --- 2 files changed, 6 deletions(-) diff --git a/frontend/components/Productivity/ProductivityAssistant.tsx b/frontend/components/Productivity/ProductivityAssistant.tsx index 5d9d4c0..03cf508 100644 --- a/frontend/components/Productivity/ProductivityAssistant.tsx +++ b/frontend/components/Productivity/ProductivityAssistant.tsx @@ -318,9 +318,6 @@ const ProductivityAssistant: React.FC = ({ await updateTask(updatedTask.id, updatedTask); setIsTaskModalOpen(false); setSelectedTask(null); - showSuccessToast( - t('task.updateSuccess', 'Task updated successfully') - ); // Optionally refresh the parent component data } } catch (error) { diff --git a/frontend/components/Task/TaskDetails.tsx b/frontend/components/Task/TaskDetails.tsx index 21e17ee..eab5e61 100644 --- a/frontend/components/Task/TaskDetails.tsx +++ b/frontend/components/Task/TaskDetails.tsx @@ -344,9 +344,6 @@ const TaskDetails: React.FC = () => { tasksStore.setTasks(updatedTasks); } } - showSuccessToast( - t('task.updateSuccess', 'Task updated successfully') - ); // Subtasks will be automatically updated when the task is reloaded from the global store