From 175e42280697dfdd1dfa03af614e4034bd63d507 Mon Sep 17 00:00:00 2001 From: dakshesh14 Date: Fri, 22 Sep 2023 17:46:00 +0530 Subject: [PATCH] fix: hard-coded percentage value for completed cycle --- web/components/cycles/single-cycle-list.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/web/components/cycles/single-cycle-list.tsx b/web/components/cycles/single-cycle-list.tsx index ec01da9e760..d59fbe241bd 100644 --- a/web/components/cycles/single-cycle-list.tsx +++ b/web/components/cycles/single-cycle-list.tsx @@ -306,8 +306,14 @@ export const SingleCycleList: React.FC = ({ ) : cycleStatus === "completed" ? ( - - {100} % + + + {Math.floor((cycle.completed_issues / cycle.total_issues) * 100)} % + ) : (