Skip to content

Commit

Permalink
recover zero on cost surface map legend
Browse files Browse the repository at this point in the history
  • Loading branch information
anamontiaga committed Dec 14, 2023
1 parent b238b0b commit 3dd07d6
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

0 comments on commit 3dd07d6

Please sign in to comment.