Browse Source

fix: update default status schedule health

pull/5/head
wahyun 6 months ago
parent
commit
74cd6f449a
  1. 4
      src/views/Dashboard/DashboardProject.js

4
src/views/Dashboard/DashboardProject.js

@ -385,7 +385,7 @@ const DashboardProject = (props) => {
let selisihProgress = 0;
let planningProgress = 0;
let actualProgress = 0;
let statusHealthBySchedule = "on-schedule";
let statusHealthBySchedule = "behind-schedule";
if (
result.data.data.length > 0 &&
result.data.data[0].data?.budget_control
@ -438,7 +438,7 @@ const DashboardProject = (props) => {
selisihProgress = planningProgress - actualProgress;
if (selisihProgress > 0 && selisihProgress <= 20) {
statusHealthBySchedule = "warning";
} else if (selisihProgress > 5) {
} else if (selisihProgress == 0 || selisihProgress < 0) {
statusHealthBySchedule = "behind-schedule";
}
setHealthBySchedule(statusHealthBySchedule);

Loading…
Cancel
Save