From 9eb8409434c0f26d1112221d4a8ae8b3079c9500 Mon Sep 17 00:00:00 2001 From: Rory Doak Date: Mon, 22 Jul 2024 11:28:31 +0100 Subject: [PATCH] add nit suggestions above --- editor.planx.uk/src/pages/Teams.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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}`); } } }}