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 18, 2024
1 parent d6c18ed commit 200a068
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/widgets/land-cover/tree-cover/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ export const parseData = createSelector(
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 200a068

Please sign in to comment.