diff --git a/components/flow.tsx b/components/flow.tsx index 699a75dd..2f7ac966 100644 --- a/components/flow.tsx +++ b/components/flow.tsx @@ -106,13 +106,13 @@ export function Flow() { validDate: getEffectiveDate(task) })); - const filteredTasks = tasksWithDates - .filter(task => task.status !== 3) + // Show all tasks, sorted by date + const sortedTasks = tasksWithDates .sort((a, b) => a.validDate.getTime() - b.validDate.getTime()) .slice(0, 6); - console.log("Filtered and sorted tasks:", filteredTasks); - setTasks(filteredTasks); + console.log("Sorted tasks:", sortedTasks); + setTasks(sortedTasks); } catch (error) { console.error("Error fetching tasks:", error); setError("Failed to fetch tasks");