Skip to content

Commit

Permalink
fix(fao-cover): validate null instead of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
willian-viana committed Nov 30, 2023
1 parent 389a0e7 commit a7f8053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/widgets/land-cover/fao-cover/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const parseSentence = createSelector(
country: locationName,
};

let sentence = forest_primary > 0 ? initial : noPrimary;
let sentence = forest_primary !== null ? initial : noPrimary;

if (locationName === 'global') {
sentence = globalInitial;
Expand Down

0 comments on commit a7f8053

Please sign in to comment.