aboutsummaryrefslogtreecommitdiff
path: root/modern/src/store/session.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/store/session.js')
-rw-r--r--modern/src/store/session.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/store/session.js b/modern/src/store/session.js
index 121b47f5..1d8b2a22 100644
--- a/modern/src/store/session.js
+++ b/modern/src/store/session.js
@@ -30,6 +30,8 @@ const { reducer, actions } = createSlice({
if (!last || (last[0] !== position.longitude && last[1] !== position.latitude)) {
state.history[position.deviceId] = [...route.slice(1 - liveRoutesLimit), [position.longitude, position.latitude]];
}
+ } else {
+ state.history = {};
}
});
},