diff --git a/frontend/src/components/Menu.tsx b/frontend/src/components/Menu.tsx index 4c3f39bc7..b93949c3e 100644 --- a/frontend/src/components/Menu.tsx +++ b/frontend/src/components/Menu.tsx @@ -1,6 +1,7 @@ import { Account } from '@features/Account/components/Account' import { ControlUnitListButton } from '@features/ControlUnit/components/ControlUnitListButton' import { DashboardMapButton } from '@features/Dashboard/components/DashboardMapButton' +import { isDashboardEnabled } from '@features/Dashboard/utils' import { InterestPointMapButton } from '@features/InterestPoint/components/InterestPointMapButton' import { MeasurementMapButton } from '@features/map/tools/measurements/MeasurementMapButton' import { MissionsMenu } from '@features/missions/MissionsButton' @@ -50,7 +51,7 @@ export function Menu({ isSuperUser }: MenuProps) { )} - {displayDashboard && isSuperUser && ( + {displayDashboard && isDashboardEnabled() && isSuperUser && (