Skip to content

Commit

Permalink
feat(treeCover): adjust Tree Cover value when plantations is false
Browse files Browse the repository at this point in the history
  • Loading branch information
wri7tno committed Dec 15, 2024
1 parent dcf1a31 commit e1f1900
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/widgets/land-cover/tree-cover/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ export const parseData = createSelector(
const parsedData = [
{
label: 'Tree Cover'.concat(label),
value: hasPlantations ? plantationsCover : cover - plantationsCover,
value: hasPlantations ? plantationsCover : cover,
color: colors.naturalForest,
percentage:
((hasPlantations ? plantationsCover : cover - plantationsCover) /
totalArea) *
100,
((hasPlantations ? plantationsCover : cover) / totalArea) * 100,
},
{
label: 'Other Land Cover',
Expand Down

0 comments on commit e1f1900

Please sign in to comment.