aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/UserStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/UserStore.js')
-rw-r--r--src/stores/UserStore.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js
index 54627440a..abec4df5d 100644
--- a/src/stores/UserStore.js
+++ b/src/stores/UserStore.js
@@ -8,8 +8,6 @@ import Request from './lib/Request';
8import CachedRequest from './lib/CachedRequest'; 8import CachedRequest from './lib/CachedRequest';
9import { gaEvent } from '../lib/analytics'; 9import { gaEvent } from '../lib/analytics';
10 10
11import { matchPath } from 'react-router'
12
13// TODO: split stores into UserStore and AuthStore 11// TODO: split stores into UserStore and AuthStore
14export default class UserStore extends Store { 12export default class UserStore extends Store {
15 BASE_ROUTE = '/auth'; 13 BASE_ROUTE = '/auth';
@@ -168,7 +166,7 @@ export default class UserStore extends Store {
168 166
169 const response = await this.inviteRequest.execute(data)._promise; 167 const response = await this.inviteRequest.execute(data)._promise;
170 168
171 this.actionStatus = response.status || [] 169 this.actionStatus = response.status || [];
172 170
173 // we do not wait for a server response before redirecting the user ONLY DURING SIGNUP 171 // we do not wait for a server response before redirecting the user ONLY DURING SIGNUP
174 if (this.stores.router.location.pathname.includes(this.INVITE_ROUTE)) { 172 if (this.stores.router.location.pathname.includes(this.INVITE_ROUTE)) {