Skip to content

Commit

Permalink
Redirect to team index page after creating a team
Browse files Browse the repository at this point in the history
  • Loading branch information
Rokt33r committed Nov 27, 2021
1 parent 1f4dbbd commit d54d11d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/mobile/components/pages/CooperatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,8 @@ const CooperatePage = () => {
const createTeamResult = await createTeam({
personal: true,
})
const destinationHref =
createTeamResult.doc == null
? getTeamLinkHref(createTeamResult.team, 'index')
: getDocLinkHref(
createTeamResult.doc,
createTeamResult.team,
'index'
)
push(destinationHref)

push(getTeamLinkHref(createTeamResult.team, 'index'))
} catch (error) {
console.error(error)
setCreatingTeam(false)
Expand Down

0 comments on commit d54d11d

Please sign in to comment.