summaryrefslogtreecommitdiffstats
path: root/webapp/root.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/root.jsx')
-rw-r--r--webapp/root.jsx20
1 files changed, 1 insertions, 19 deletions
diff --git a/webapp/root.jsx b/webapp/root.jsx
index 10cc63643..c88b0a7b3 100644
--- a/webapp/root.jsx
+++ b/webapp/root.jsx
@@ -158,23 +158,6 @@ function preLoggedIn(nextState, replace, callback) {
});
}
-function onRootEnter(nextState, replace, callback) {
- if (nextState.location.pathname === '/') {
- Client.getMeLoggedIn((data) => {
- if (!data || data.logged_in === 'false') {
- replace({pathname: '/signup_team'});
- callback();
- } else {
- replace({pathname: '/' + data.team_name + '/channels/town-square'});
- callback();
- }
- });
- return;
- }
-
- callback();
-}
-
function onPermalinkEnter(nextState) {
const postId = nextState.params.postid;
@@ -231,7 +214,6 @@ function renderRootComponent() {
<Route
path='/'
component={Root}
- onEnter={onRootEnter}
>
<Route
path='error'
@@ -338,7 +320,7 @@ function renderRootComponent() {
component={TeamURLPage}
/>
<Route
- path='invites'
+ path='send_invites'
component={SendInivtesPage}
/>
<Route