aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/components/BottomMenu.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-08 18:11:23 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-08 18:11:23 -0700
commit98f2dd952e35e41045c7c9f925e229000bbe4797 (patch)
tree8f05333308f5542991dfb6a019ff3b4a2959899d /modern/src/common/components/BottomMenu.js
parentbf95e1bb48379bc1c3482d3f201017250991a832 (diff)
downloadtrackermap-web-98f2dd952e35e41045c7c9f925e229000bbe4797.tar.gz
trackermap-web-98f2dd952e35e41045c7c9f925e229000bbe4797.tar.bz2
trackermap-web-98f2dd952e35e41045c7c9f925e229000bbe4797.zip
Migrate reports to page layout
Diffstat (limited to 'modern/src/common/components/BottomMenu.js')
-rw-r--r--modern/src/common/components/BottomMenu.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/common/components/BottomMenu.js b/modern/src/common/components/BottomMenu.js
index 048cb0d7..30960396 100644
--- a/modern/src/common/components/BottomMenu.js
+++ b/modern/src/common/components/BottomMenu.js
@@ -27,7 +27,7 @@ const BottomMenu = () => {
const [anchorEl, setAnchorEl] = useState(null);
const currentSelection = () => {
- if (location.pathname.startsWith('/settings/user')) {
+ if (location.pathname === `/settings/user/${userId}`) {
return 3;
} if (location.pathname.startsWith('/settings')) {
return 2;