Browse Source

bugfix

pull/2/head
Muhammad Sulaiman Yusuf 2 years ago
parent
commit
66f91d7828
  1. 3
      src/views/Dashboard/DashboardProject.js

3
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'
}

Loading…
Cancel
Save