Skip to content

Commit

Permalink
Fix location navigation
Browse files Browse the repository at this point in the history
Signed-off-by: Kipruto <43873157+kelvinkipruto@users.noreply.github.com>
  • Loading branch information
kelvinkipruto committed Feb 21, 2025
1 parent 1d157f8 commit da2789c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/climatemappedafrica/src/components/ExplorePage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function ExplorePage({
if (geoCode) {
dispatch({
type: "fetch",
payload: { code: geoCode, onClick: handleClickTag },
payload: { code: geoCode },
});
}
}, [dispatch, geoCode]);
Expand Down Expand Up @@ -129,6 +129,8 @@ function ExplorePage({
};

const handleClickMap = (_, feature) => {
const code = feature?.properties?.code;
setGeoCode(code);
return handleSelectLocation(feature.properties);
};

Expand Down

0 comments on commit da2789c

Please sign in to comment.