File tree Expand file tree Collapse file tree
src/frontend/src/pages/ProjectPage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,16 +56,16 @@ const ProjectSpendingHistory: React.FC<ProjectSpendingHistoryProps> = ({ wbsNum
5656 const budgetInfo = useMemo ( ( ) => {
5757 if ( ! project ) return null ;
5858
59- const totalBudget = project . budget ;
60- const totalSpent = reimbursementRequests . reduce ( ( sum , rr ) => sum + ( rr . totalCost || 0 ) , 0 ) ;
59+ const totalBudget = project . budget ;
60+ const totalSpent = reimbursementRequests . reduce ( ( sum , rr ) => sum + ( rr . totalCost || 0 ) , 0 ) ;
6161 const budgetRemaining = totalBudget - totalSpent ;
6262 const budgetUsedPercentage = totalBudget > 0 ? ( totalSpent / totalBudget ) * 100 : 0 ;
6363
6464 return {
65- totalBudget : totalBudget / 100 ,
66- totalSpent : totalSpent / 100 ,
67- budgetRemaining : budgetRemaining / 100 ,
68- budgetUsedPercentage : Math . min ( budgetUsedPercentage , 100 )
65+ totalBudget : totalBudget / 100 ,
66+ totalSpent : totalSpent / 100 ,
67+ budgetRemaining : budgetRemaining / 100 ,
68+ budgetUsedPercentage : Math . min ( budgetUsedPercentage , 100 )
6969 } ;
7070 } , [ project , reimbursementRequests ] ) ;
7171
You can’t perform that action at this time.
0 commit comments