diff --git a/editor.planx.uk/src/pages/Teams.tsx b/editor.planx.uk/src/pages/Teams.tsx index 4447ee701f..50a14b21cb 100644 --- a/editor.planx.uk/src/pages/Teams.tsx +++ b/editor.planx.uk/src/pages/Teams.tsx @@ -55,8 +55,6 @@ const Teams: React.FC = ({ teams, teamTheme }) => { state.createTeam, ]); - const isPlatformAdmin = useStore.getState().getUser()?.isPlatformAdmin; - const editableTeams: Team[] = []; const viewOnlyTeams: Team[] = []; @@ -112,7 +110,8 @@ const Teams: React.FC = ({ teams, teamTheme }) => { await createTeam({ name: newTeamName, slug: newSlug, - }).then(() => navigation.navigate(`/${newSlug}`)); + }); + navigation.navigate(`/${newSlug}`); } } }}