Browse Source

Merge pull request 'dev-wahyu' (#56) from dev-wahyu into staging

Reviewed-on: ordo/adw-frontend#56
pull/2/head
ibnu 2 years ago
parent
commit
9ffc096b12
  1. 6
      src/views/Dashboard/DashboardBOD.js
  2. 4
      src/views/SimproV2/CreatedProyek/DialogFormProyek.js

6
src/views/Dashboard/DashboardBOD.js

@ -307,8 +307,10 @@ const DashboardBOD = () => {
let actualProgress = 0;
let selisihProgress = 0;
// planningProgress = item.scurve[0].data.percentagePlan[item.scurve[0].data.percentagePlan.length - 1]
// actualProgress = item.scurve[0].data.percentageReal[item.scurve[0].data.percentageReal.length - 1]
if(item.scurve && item.scurve[0]) {
planningProgress = item.scurve[0].data.percentagePlan[item.scurve[0].data.percentagePlan.length - 1]
actualProgress = item.scurve[0].data.percentageReal[item.scurve[0].data.percentageReal.length - 1]
}
selisihProgress = planningProgress - actualProgress

4
src/views/SimproV2/CreatedProyek/DialogFormProyek.js

@ -654,8 +654,8 @@ const DialogFormProyek = ({
<Option key="warning" value="warning">
Warning
</Option>
<Option key="danger" value="danger">
Danger
<Option key="overrun" value="overrun">
Overrun
</Option>
</Select>
</FormGroup>

Loading…
Cancel
Save