diff --git a/src/components/GoalTracker.tsx b/src/components/GoalTracker.tsx index 36633792..5aedb15f 100644 --- a/src/components/GoalTracker.tsx +++ b/src/components/GoalTracker.tsx @@ -96,16 +96,10 @@ export default function GoalTracker() { if (!res.ok) { setGoals(previousGoals); setDeleteError("Failed to delete goal. Please try again."); - setTimeout(() => { - setDeleteError(null); - }, 5000); } } catch { setGoals(previousGoals); - setDeleteError("Failed to delete goal. Please try again."); - setTimeout(() => { - setDeleteError(null); - }, 5000); + setDeleteError("Failed to delete goal. Please check your connection."); } finally { setDeletingId(null); } @@ -184,22 +178,9 @@ export default function GoalTracker() {

Weekly Goals

{deleteError && ( -
-
- - - - {deleteError} -
- +
+

{deleteError}

+
)} @@ -234,7 +215,7 @@ export default function GoalTracker() { )}
{completed && ( - + {completionLabel} )} @@ -283,7 +264,7 @@ export default function GoalTracker() {