diff --git a/src/views/Dashboard/DashboardProject.js b/src/views/Dashboard/DashboardProject.js
index cabac62..ebc5bfd 100644
--- a/src/views/Dashboard/DashboardProject.js
+++ b/src/views/Dashboard/DashboardProject.js
@@ -1244,15 +1244,17 @@ const DashboardProject = () => {
Est. at Completion
- {isReadySCurve ? (
- plannedCost !== null && bcwp !== null ? (
- plannedCost > bcwp ? (
- renderFormatRupiah(plannedCost, "Rp.")
- ) : (
- renderFormatRupiah(bcwp, "Rp.")
+ {isReadyProjectDetail && isReadyGantt ? (
+ dataGantt.data.data.cost_to_complete ? (
+ renderFormatRupiah(
+ (parseInt(plannedCost) + dataGantt.data.data.cost_to_complete).toString(),
+ "Rp."
)
) : (
- "-"
+ renderFormatRupiah(
+ parseInt(plannedCost).toString(),
+ "Rp."
+ )
)
) : (
@@ -1292,10 +1294,10 @@ const DashboardProject = () => {
Cost Deviation
- {isReadyProjectDetail && isReadyIntegrationInvoice ? (
- totalCost > plannedCost ? (
+ {isReadyProjectDetail && isReadyGantt ? (
+ dataGantt.data.data.cost_to_complete ? (
renderFormatRupiah(
- (totalCost - plannedCost).toString(),
+ (dataGantt.data.data.cost_to_complete).toString(),
"Rp."
)
) : (