We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58411af commit 3e97cdcCopy full SHA for 3e97cdc
1 file changed
frontend/lib/helpers.ts
@@ -87,7 +87,7 @@ export const getMarkerColor = (count: number) => {
87
if (count <= 250) return markerColors[6];
88
if (count <= 300) return markerColors[7];
89
if (count <= 400) return markerColors[8];
90
- if (count <= 500) return markerColors[9];
+ if (count <= 1000) return markerColors[9];
91
return markerColors[0];
92
};
93
@@ -163,8 +163,8 @@ export const formatDistance = (meters: number, metric: boolean) => {
163
distance > 10
164
? Math.round(distance)
165
: distance > 1
166
- ? Math.round(distance * 10) / 10
167
- : Math.round(distance * 100) / 100;
+ ? Math.round(distance * 10) / 10
+ : Math.round(distance * 100) / 100;
168
return `${rounded} ${units}`;
169
170
0 commit comments