diff options
author | 2018-02-06 11:51:27 +0100 | |
---|---|---|
committer | 2018-02-06 11:51:27 +0100 | |
commit | b9c6a7f7d825672ed6ba83d1f13d7b14cfc7458e (patch) | |
tree | afe00d698c5031cb5af667a33e20b39a1a32dc85 /src/stores | |
parent | UPDATE electron version (diff) | |
download | ferdium-app-b9c6a7f7d825672ed6ba83d1f13d7b14cfc7458e.tar.gz ferdium-app-b9c6a7f7d825672ed6ba83d1f13d7b14cfc7458e.tar.zst ferdium-app-b9c6a7f7d825672ed6ba83d1f13d7b14cfc7458e.zip |
[MINOR] isDevMode check in UserStore
to test routes independently
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/UserStore.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js index 09000dcdb..3a43668a7 100644 --- a/src/stores/UserStore.js +++ b/src/stores/UserStore.js | |||
@@ -237,7 +237,9 @@ export default class UserStore extends Store { | |||
237 | && currentRoute.includes(this.BASE_ROUTE) | 237 | && currentRoute.includes(this.BASE_ROUTE) |
238 | && (this.hasCompletedSignup | 238 | && (this.hasCompletedSignup |
239 | || this.hasCompletedSignup === null)) { | 239 | || this.hasCompletedSignup === null)) { |
240 | this.stores.router.push('/'); | 240 | if (!isDevMode) { |
241 | this.stores.router.push('/'); | ||
242 | } | ||
241 | } | 243 | } |
242 | }; | 244 | }; |
243 | 245 | ||