diff options
author | 2018-01-30 12:41:42 +0100 | |
---|---|---|
committer | 2018-01-30 12:41:42 +0100 | |
commit | 25446bbdf8d0020b1adfe34e4f45c1a1eec6528e (patch) | |
tree | ce1716855f3501da31ec2994e6d9ddb3d7e3fa09 /src/stores/UserStore.js | |
parent | Merge branch 'develop' into feature/invite-button (diff) | |
download | ferdium-app-25446bbdf8d0020b1adfe34e4f45c1a1eec6528e.tar.gz ferdium-app-25446bbdf8d0020b1adfe34e4f45c1a1eec6528e.tar.zst ferdium-app-25446bbdf8d0020b1adfe34e4f45c1a1eec6528e.zip |
Merge branch 'fix-invite-screen' into feature/invite-button
fix linitng errors
Diffstat (limited to 'src/stores/UserStore.js')
-rw-r--r-- | src/stores/UserStore.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js index 476c1f040..91b544b29 100644 --- a/src/stores/UserStore.js +++ b/src/stores/UserStore.js | |||
@@ -2,6 +2,7 @@ import { observable, computed, action } from 'mobx'; | |||
2 | import moment from 'moment'; | 2 | import moment from 'moment'; |
3 | import jwt from 'jsonwebtoken'; | 3 | import jwt from 'jsonwebtoken'; |
4 | 4 | ||
5 | import { isDevMode } from '../environment'; | ||
5 | import Store from './lib/Store'; | 6 | import Store from './lib/Store'; |
6 | import Request from './lib/Request'; | 7 | import Request from './lib/Request'; |
7 | import CachedRequest from './lib/CachedRequest'; | 8 | import CachedRequest from './lib/CachedRequest'; |
@@ -166,7 +167,7 @@ export default class UserStore extends Store { | |||
166 | this.inviteRequest.execute(data); | 167 | this.inviteRequest.execute(data); |
167 | 168 | ||
168 | // we do not wait for a server response before redirecting the user | 169 | // we do not wait for a server response before redirecting the user |
169 | this.stores.router.push(!!from ? from : '/'); | 170 | this.stores.router.push(from || '/'); |
170 | 171 | ||
171 | gaEvent('User', 'inviteUsers'); | 172 | gaEvent('User', 'inviteUsers'); |
172 | } | 173 | } |