Spaces:
Runtime error
Runtime error
Commit
·
024db11
1
Parent(s):
f88eda5
Fix slider issue of Search Radius
Browse files- Had hardcoded it earlier to 10, so as I increased search radius to 50, it threw issues.
frontend/src/components/Map.js
CHANGED
@@ -1004,7 +1004,7 @@ const Map = ( { onMapClick, searchQuery, contentType, setSearchQuery, setSubmitt
|
|
1004 |
<input
|
1005 |
type="number"
|
1006 |
min="1"
|
1007 |
-
max=
|
1008 |
value={explorationRadius}
|
1009 |
onChange={(e) => {
|
1010 |
const value = parseInt(e.target.value);
|
|
|
1004 |
<input
|
1005 |
type="number"
|
1006 |
min="1"
|
1007 |
+
max={maxExplorationLimit}
|
1008 |
value={explorationRadius}
|
1009 |
onChange={(e) => {
|
1010 |
const value = parseInt(e.target.value);
|