From 66f91d78280a2460ad7d877f9db783cf171eaafc Mon Sep 17 00:00:00 2001 From: Muhammad Sulaiman Yusuf Date: Tue, 18 Oct 2022 04:40:49 +0700 Subject: [PATCH] bugfix --- src/views/Dashboard/DashboardProject.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/Dashboard/DashboardProject.js b/src/views/Dashboard/DashboardProject.js index ea23b39..3586575 100644 --- a/src/views/Dashboard/DashboardProject.js +++ b/src/views/Dashboard/DashboardProject.js @@ -133,7 +133,7 @@ const DashboardProject = () => { const payload = { "project_id": PROJECT_ID.toString(), "period": "week", - "end_date": moment(new Date()).format('YYYY-MM-DD') + // "end_date": moment(new Date()).format('YYYY-MM-DD') } const result = await axios.post(URL, payload, HEADER).then(res => res).catch(err => err.response) console.log('getSCurve', result); @@ -172,6 +172,7 @@ const DashboardProject = () => { } selisihProgress = planningProgress - actualProgress; + console.log("QWE", [planningProgress, actualProgress]); if (selisihProgress > 0 && selisihProgress <= 5) { statusHealthBySchedule = 'warning' }