From 8ddc64def0c635fb25d3016471b869f3f66d80d9 Mon Sep 17 00:00:00 2001 From: "cyril.tsui" Date: Thu, 9 May 2024 14:37:07 +0800 Subject: [PATCH] update project --- src/components/CreateProject/ResourceAllocation.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/CreateProject/ResourceAllocation.tsx b/src/components/CreateProject/ResourceAllocation.tsx index 46cec67..b1a79b9 100644 --- a/src/components/CreateProject/ResourceAllocation.tsx +++ b/src/components/CreateProject/ResourceAllocation.tsx @@ -269,7 +269,7 @@ const ResourceAllocationByStage: React.FC = ({ grades, allTasks }) => { {grades.map((column, idx) => { const stageHours = - currentTaskGroups[tg.id].percentAllocation * totalManhour; + currentTaskGroups[tg.id].percentAllocation / 100 * totalManhour; return ( {manhourFormatter.format( @@ -314,7 +314,7 @@ const ResourceAllocationByStage: React.FC = ({ grades, allTasks }) => { acc + tg.percentAllocation / 100 * totalManhour * - manhourPercentageByGrade[column.id], + manhourPercentageByGrade[column.id] / 100 , 0, ); return (