Skip to content

Commit

Permalink
fix: test e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
maximeperrault committed Sep 18, 2024
1 parent d6fab6b commit 0400fe9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/components/Menu.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -50,7 +51,7 @@ export function Menu({ isSuperUser }: MenuProps) {
<ControlUnitListButton />
</li>
)}
{displayDashboard && isSuperUser && (
{displayDashboard && isDashboardEnabled() && isSuperUser && (
<li>
<DashboardMapButton />
</li>
Expand Down

0 comments on commit 0400fe9

Please sign in to comment.