|
|
|
@ -163,11 +163,11 @@ const DashboardProject = () => {
|
|
|
|
|
setCostDeviation(result.data.data[0].data.budget_control.cost_deviation?.toString()) |
|
|
|
|
} |
|
|
|
|
if (result.data.data.length > 0 && result.data.data[0].data?.percentagePlan && result.data.data[0].data?.percentagePlan.length > 0) { |
|
|
|
|
let planningProgress = result.data.data[0].data?.percentagePlan[result.data.data[0].data?.percentagePlan.length-1]; |
|
|
|
|
planningProgress = result.data.data[0].data?.percentagePlan[result.data.data[0].data?.percentagePlan.length-1]; |
|
|
|
|
setPlanningProgress(planningProgress); |
|
|
|
|
} |
|
|
|
|
if (result.data.data.length > 0 && result.data.data[0].data?.percentageReal && result.data.data[0].data?.percentageReal.length > 0) { |
|
|
|
|
let actualProgress = result.data.data[0].data?.percentageReal[result.data.data[0].data?.percentageReal.length-1]; |
|
|
|
|
actualProgress = result.data.data[0].data?.percentageReal[result.data.data[0].data?.percentageReal.length-1]; |
|
|
|
|
setActualProgress(actualProgress); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|