Skip to content

Commit

Permalink
Merge pull request #1611 from Vizzuality/MRXN23-527-recover-zero-grad…
Browse files Browse the repository at this point in the history
…ient-legend

[FE](fix): recover zero on cost surface map legend [MRXN23-527]
  • Loading branch information
andresgnlez authored Dec 15, 2023
2 parents b238b0b + 3dd07d6 commit fa16ff4
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions app/components/map/legend/types/gradient/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,17 @@ export const LegendTypeGradient: React.FC<LegendTypeGradientProps> = ({
/>

<ul className="mt-1 flex w-full justify-between">
{items
.filter(({ value }) => !!value)
.map(({ value }) => (
<li
key={`${value}`}
className={cn({
'flex-shrink-0 text-xs': true,
[className.labels]: className.labels,
})}
>
{format(+parseInt(value, 10))}
</li>
))}
{items.map(({ value }) => (
<li
key={`${value}`}
className={cn({
'flex-shrink-0 text-xs': true,
[className.labels]: className.labels,
})}
>
{format(+parseInt(value, 10))}
</li>
))}
</ul>
</div>
);
Expand Down

1 comment on commit fa16ff4

@vercel
Copy link

@vercel vercel bot commented on fa16ff4 Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

marxan – ./

marxan-vizzuality1.vercel.app
marxan-git-develop-vizzuality1.vercel.app
marxan23.vercel.app

Please sign in to comment.