diff --git a/apps/app/components/modules/single-module-card.tsx b/apps/app/components/modules/single-module-card.tsx index a839eafe2..cbc9ff2e2 100644 --- a/apps/app/components/modules/single-module-card.tsx +++ b/apps/app/components/modules/single-module-card.tsx @@ -57,6 +57,7 @@ export const SingleModuleCard: React.FC = ({ module, handleEditModule }) const completedIssues = (moduleIssues ?? []).filter( (i) => i.state_detail.group === "completed" || i.state_detail.group === "cancelled" ).length; + const completionPercentage = (completedIssues / (moduleIssues ?? []).length) * 100; const handleDeleteModule = () => { if (!module) return; @@ -156,7 +157,7 @@ export const SingleModuleCard: React.FC = ({ module, handleEditModule })
-
-
- Progress{" "} -