diff options
Diffstat (limited to 'src/stores/UserStore.js')
-rw-r--r-- | src/stores/UserStore.js | 4 |
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'; | |||
8 | import CachedRequest from './lib/CachedRequest'; | 8 | import CachedRequest from './lib/CachedRequest'; |
9 | import { gaEvent } from '../lib/analytics'; | 9 | import { gaEvent } from '../lib/analytics'; |
10 | 10 | ||
11 | import { matchPath } from 'react-router' | ||
12 | |||
13 | // TODO: split stores into UserStore and AuthStore | 11 | // TODO: split stores into UserStore and AuthStore |
14 | export default class UserStore extends Store { | 12 | export 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)) { |