From 320b0554c7f9545e5c4b84f440a4e5976b96896c Mon Sep 17 00:00:00 2001 From: wahyu Date: Tue, 3 Oct 2023 11:28:54 +0700 Subject: [PATCH] fix dashboard project --- src/views/Dashboard/DashboardProject.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/Dashboard/DashboardProject.js b/src/views/Dashboard/DashboardProject.js index f4bc56c..ebc5bfd 100644 --- a/src/views/Dashboard/DashboardProject.js +++ b/src/views/Dashboard/DashboardProject.js @@ -1245,13 +1245,16 @@ const DashboardProject = () => { {isReadyProjectDetail && isReadyGantt ? ( - plannedCost && dataGantt.data.data.cost_to_complete ? ( + dataGantt.data.data.cost_to_complete ? ( renderFormatRupiah( (parseInt(plannedCost) + dataGantt.data.data.cost_to_complete).toString(), "Rp." ) ) : ( - "Rp. 0" + renderFormatRupiah( + parseInt(plannedCost).toString(), + "Rp." + ) ) ) : (