Skip to content

Commit

Permalink
corrected legend title when switching between layers in integrated de…
Browse files Browse the repository at this point in the history
…forestation layer
  • Loading branch information
davidlstarr committed Oct 17, 2023
1 parent c1a1071 commit 86bc2d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/components/legend/generateLegendItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,13 @@ const LegendItems = (props: LegendItemProps): JSX.Element => {
});
}

console.log(layer.title);

return (
<div className="layer-item" key={layer.id + `${i}`}>
<p className="layer-title">{layer.title === 'GFW Integrated Alerts' ? integratedAlertLabel : layer.title}</p>
<p className="layer-title">
{layer.title === 'Integrated Deforestation Alerts' ? integratedAlertLabel : layer.title}
</p>
{labelIcons}
</div>
);
Expand Down

0 comments on commit 86bc2d4

Please sign in to comment.