Skip to content

Commit 3e97cdc

Browse files
Fix hotspot coloring for high species hotspots
1 parent 58411af commit 3e97cdc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/lib/helpers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const getMarkerColor = (count: number) => {
8787
if (count <= 250) return markerColors[6];
8888
if (count <= 300) return markerColors[7];
8989
if (count <= 400) return markerColors[8];
90-
if (count <= 500) return markerColors[9];
90+
if (count <= 1000) return markerColors[9];
9191
return markerColors[0];
9292
};
9393

@@ -163,8 +163,8 @@ export const formatDistance = (meters: number, metric: boolean) => {
163163
distance > 10
164164
? Math.round(distance)
165165
: distance > 1
166-
? Math.round(distance * 10) / 10
167-
: Math.round(distance * 100) / 100;
166+
? Math.round(distance * 10) / 10
167+
: Math.round(distance * 100) / 100;
168168
return `${rounded} ${units}`;
169169
};
170170

0 commit comments

Comments
 (0)