From 68fc3679a457b6dca9bf0787d32045f1f36e4a4f Mon Sep 17 00:00:00 2001 From: Rudra samadhiya Date: Sun, 14 Jun 2026 10:31:52 +0530 Subject: [PATCH] fix: remove commits-only guard in GoalTracker auto-sync (closes #2410) --- src/components/GoalTracker.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/GoalTracker.tsx b/src/components/GoalTracker.tsx index 485f1c212..548965863 100644 --- a/src/components/GoalTracker.tsx +++ b/src/components/GoalTracker.tsx @@ -105,7 +105,7 @@ export function useGoalTracker() { loadGoals() .then(async (fetchedGoals) => { const needsSync = fetchedGoals.some((g: Goal) => { - if (g.unit !== "commits") return false; + // auto-sync applies to all goal types if (!g.last_synced_at) return true; const syncedAt = new Date(g.last_synced_at).getTime(); return Date.now() - syncedAt > 15 * 60 * 1000;