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, 2 insertions, 2 deletions
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js
index 3a53d150d..c1ed2944a 100644
--- a/src/stores/UserStore.js
+++ b/src/stores/UserStore.js
@@ -99,7 +99,7 @@ export default class UserStore extends Store {
99 99
100 // Reactions 100 // Reactions
101 this.registerReactions([ 101 this.registerReactions([
102 this._requireAuthenticatedUser, 102 this._requireAuthenticatedUser.bind(this),
103 this._getUserData.bind(this), 103 this._getUserData.bind(this),
104 this._resetTrialActivationState.bind(this), 104 this._resetTrialActivationState.bind(this),
105 ]); 105 ]);
@@ -321,7 +321,7 @@ export default class UserStore extends Store {
321 } 321 }
322 322
323 const { router } = this.stores; 323 const { router } = this.stores;
324 const currentRoute = router.location.pathname; 324 const currentRoute = window.location.hash;
325 if (!this.isLoggedIn 325 if (!this.isLoggedIn
326 && currentRoute.includes('token=')) { 326 && currentRoute.includes('token=')) {
327 router.push(this.WELCOME_ROUTE); 327 router.push(this.WELCOME_ROUTE);