Skip to content

Commit

Permalink
[MINOR] isDevMode check in UserStore
Browse files Browse the repository at this point in the history
to test routes independently
  • Loading branch information
haraldox committed Feb 6, 2018
1 parent c67d7d1 commit b9c6a7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stores/UserStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ export default class UserStore extends Store {
&& currentRoute.includes(this.BASE_ROUTE)
&& (this.hasCompletedSignup
|| this.hasCompletedSignup === null)) {
this.stores.router.push('/');
if (!isDevMode) {
this.stores.router.push('/');
}
}
};

Expand Down

0 comments on commit b9c6a7f

Please sign in to comment.