Fix typos causing the minAccuracy filter to work incorrectly

This commit is contained in:
Linus Groh
2020-05-16 13:50:57 +01:00
parent 005aab715f
commit 906eb2a1b4
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;