diff --git a/components/flow.tsx b/components/flow.tsx index dd728f4..0c8733f 100644 --- a/components/flow.tsx +++ b/components/flow.tsx @@ -117,6 +117,13 @@ export function Duties() { if (leantimeResponse.status === 'fulfilled' && leantimeResponse.value.ok) { const leantimeData = await leantimeResponse.value.json(); if (Array.isArray(leantimeData)) { + // Log ALL tasks with their statuses to see what we receive + console.log('[Devoirs Widget] 📥 RAW Leantime tasks from API:', leantimeData.map((t: any) => ({ + id: t.id, + headline: t.headline, + status: t.status, + statusType: typeof t.status, + }))); leantimeTasks = leantimeData; // Log tasks with status 5 to debug const doneTasks = leantimeData.filter((t: Task) => {