Skip to content

Commit d54d11d

Browse files
committed
Redirect to team index page after creating a team
1 parent 1f4dbbd commit d54d11d

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/mobile/components/pages/CooperatePage.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,8 @@ const CooperatePage = () => {
7979
const createTeamResult = await createTeam({
8080
personal: true,
8181
})
82-
const destinationHref =
83-
createTeamResult.doc == null
84-
? getTeamLinkHref(createTeamResult.team, 'index')
85-
: getDocLinkHref(
86-
createTeamResult.doc,
87-
createTeamResult.team,
88-
'index'
89-
)
90-
push(destinationHref)
82+
83+
push(getTeamLinkHref(createTeamResult.team, 'index'))
9184
} catch (error) {
9285
console.error(error)
9386
setCreatingTeam(false)

0 commit comments

Comments
 (0)