Skip to content

Commit

Permalink
redirect route fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tima101 committed May 22, 2019
1 parent 54f121b commit b2a23c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/pages/create-team.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class CreateTeam extends React.Component<MyProps> {
console.log(`Returned to client: ${team._id}, ${team.name}, ${team.slug}`);

if (file == null) {
Router.push(`/team/${team.slug}/settings`);
Router.push(`/team/${team.slug}/team-settings`);
notify('You successfully created Team.<p />Redirecting...');
return;
}
Expand Down Expand Up @@ -84,7 +84,7 @@ class CreateTeam extends React.Component<MyProps> {

document.getElementById('upload-file').value = '';

Router.push(`/team/${team.slug}/settings`);
Router.push(`/team/${team.slug}/team-settings`);

notify('You successfully created Team. Redirecting ...');
} catch (error) {
Expand Down

0 comments on commit b2a23c3

Please sign in to comment.