Skip to content

Commit

Permalink
[#169] Remove multiplied by -1 (CoP) on monetary contrib chart
Browse files Browse the repository at this point in the history
  • Loading branch information
wayangalihpratama committed Feb 14, 2024
1 parent 21aad73 commit bb8c653
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ const ChartMonetaryContribution = ({
replacedCurrentValues
) + data.total_current_diversified_income;
const resValue = newTotalValue - data.total_current_income;
// CoP
if (d.toLowerCase().includes("cost")) {
return resValue * -1;
}
// CoP - multiplied by 1
// if (d.toLowerCase().includes("cost")) {
// return resValue * -1;
// }
return resValue;
}
return 0;
Expand Down

0 comments on commit bb8c653

Please # to comment.