Browse Source

Fix planning progress bar range

pull/2/head
Wahyu Ramadhan 1 year ago
parent
commit
cacc6cc7c5
  1. 2
      src/views/Dashboard/DashboardProject.js

2
src/views/Dashboard/DashboardProject.js

@ -289,7 +289,7 @@ const DashboardProject = () => {
}
let now = new Date().toISOString().slice(0, 10);
let dates = result.data.data[0].data?.date;
let n = dates.findIndex(element => new Date(now) < new Date(element[0])) - 1;
let n = dates.findIndex(element => new Date(now) < new Date(element[0]));
if (n < 0) {
n = dates.length - 1;
}

Loading…
Cancel
Save