Skip to content

Commit

Permalink
fix: Conditions for settings visibility (#2717)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Jan 30, 2024
1 parent 3d0f005 commit a5deb4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor.planx.uk/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,13 @@ const EditorToolbar: React.FC<{
};

const isFlowSettingsVisible =
route.data.flow && !route.data.flow && canUserEditTeam(team.slug);
route.data.flow && canUserEditTeam(team.slug);

const isTeamSettingsVisible =
route.data.team && !route.data.flow && canUserEditTeam(team.slug);

const isGlobalSettingsVisible =
!route.data.flow && !team.slug && user?.isPlatformAdmin;
!route.data.team && user?.isPlatformAdmin;

return (
<>
Expand Down

0 comments on commit a5deb4e

Please sign in to comment.