aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
Diffstat (limited to 'modern')
-rw-r--r--modern/src/store/session.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/store/session.js b/modern/src/store/session.js
index 1d8b2a22..a95cfec8 100644
--- a/modern/src/store/session.js
+++ b/modern/src/store/session.js
@@ -21,7 +21,7 @@ const { reducer, actions } = createSlice({
},
updatePositions(state, action) {
const liveRoutes = state.user.attributes.mapLiveRoutes || state.server.attributes.mapLiveRoutes || 'none';
- const liveRoutesLimit = state.user.attributes['web.liveRouteLength'] || state.user.attributes['web.liveRouteLength'] || 10;
+ const liveRoutesLimit = state.user.attributes['web.liveRouteLength'] || state.server.attributes['web.liveRouteLength'] || 10;
action.payload.forEach((position) => {
state.positions[position.deviceId] = position;
if (liveRoutes !== 'none') {