mirror of
https://github.com/owntracks/frontend.git
synced 2026-05-05 03:06:32 +00:00
Fix typos causing the minAccuracy filter to work incorrectly
This commit is contained in:
@@ -130,7 +130,7 @@ const _getDistanceTravelled = locationHistory => {
|
||||
let lastLatLng = null;
|
||||
locationHistory[user][device].forEach(location => {
|
||||
if (
|
||||
config.minAccurac !== null &&
|
||||
config.filters.minAccuracy !== null &&
|
||||
location.acc > config.filters.minAccuracy
|
||||
)
|
||||
return;
|
||||
|
||||
@@ -19,7 +19,7 @@ const filteredLocationHistory = state => {
|
||||
locationHistory[user][device] = [];
|
||||
state.locationHistory[user][device].forEach(location => {
|
||||
if (
|
||||
config.minAccurac !== null &&
|
||||
config.filters.minAccuracy !== null &&
|
||||
location.acc > config.filters.minAccuracy
|
||||
)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user