diff --git a/frontend/src/pages/TripChecklist.tsx b/frontend/src/pages/TripChecklist.tsx index 31a009b..564f390 100644 --- a/frontend/src/pages/TripChecklist.tsx +++ b/frontend/src/pages/TripChecklist.tsx @@ -231,6 +231,11 @@ export default function TripChecklist({ trips }: { trips: any[] }) { return withSpaces.charAt(0).toUpperCase() + withSpaces.slice(1); } + // Progress calculation + const totalItems = items.length; + const checkedItems = items.filter((item) => item.checked).length; + const progress = totalItems > 0 ? Math.round((checkedItems / totalItems) * 100) : 0; + return (