From a7f8053a1253da6948b67914632b4fe3d581a6b2 Mon Sep 17 00:00:00 2001 From: Willian Viana Date: Thu, 30 Nov 2023 15:14:55 -0300 Subject: [PATCH] fix(fao-cover): validate null instead of 0 --- components/widgets/land-cover/fao-cover/selectors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/widgets/land-cover/fao-cover/selectors.js b/components/widgets/land-cover/fao-cover/selectors.js index 276e1e3eeb..7d76c04df0 100644 --- a/components/widgets/land-cover/fao-cover/selectors.js +++ b/components/widgets/land-cover/fao-cover/selectors.js @@ -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;