From a5deb4e76dada738797d4829c1d93d747be80f8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Tue, 30 Jan 2024 17:34:03 +0000 Subject: [PATCH] fix: Conditions for settings visibility (#2717) --- editor.planx.uk/src/components/Header.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor.planx.uk/src/components/Header.tsx b/editor.planx.uk/src/components/Header.tsx index 95005b72e4..4a45b0425b 100644 --- a/editor.planx.uk/src/components/Header.tsx +++ b/editor.planx.uk/src/components/Header.tsx @@ -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 ( <>