Skip to content

Commit

Permalink
add nit suggestions above
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Jul 22, 2024
1 parent 8a0e585 commit 9eb8409
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions editor.planx.uk/src/pages/Teams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ const Teams: React.FC<Props> = ({ teams, teamTheme }) => {
state.createTeam,
]);

const isPlatformAdmin = useStore.getState().getUser()?.isPlatformAdmin;

const editableTeams: Team[] = [];
const viewOnlyTeams: Team[] = [];

Expand Down Expand Up @@ -112,7 +110,8 @@ const Teams: React.FC<Props> = ({ teams, teamTheme }) => {
await createTeam({
name: newTeamName,
slug: newSlug,
}).then(() => navigation.navigate(`/${newSlug}`));
});
navigation.navigate(`/${newSlug}`);
}
}
}}
Expand Down

0 comments on commit 9eb8409

Please sign in to comment.