DistanceMeter bugfix
*Fixed DistanceMeter not reseting on scenery change
This commit is contained in:
parent
6bd954ccb0
commit
032d93a51c
@ -18,6 +18,10 @@ export default function DistanceMeter() {
|
||||
});
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
setDistancePoints([]);
|
||||
}, [setDistancePoints]);
|
||||
|
||||
if(!scenery || !Array.isArray(distancePoints)) return null;
|
||||
|
||||
return (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user