diff --git a/js/actions/user_actions.js b/js/actions/user_actions.js index a661b8de..9d59044f 100644 --- a/js/actions/user_actions.js +++ b/js/actions/user_actions.js @@ -1,6 +1,6 @@ 'use strict'; -import { altUser } from '../alt'; +import { alt } from '../alt'; class UserActions { @@ -15,4 +15,4 @@ class UserActions { } } -export default altUser.createActions(UserActions); +export default alt.createActions(UserActions); diff --git a/js/alt.js b/js/alt.js index 141248c1..3e1d3fae 100644 --- a/js/alt.js +++ b/js/alt.js @@ -4,5 +4,4 @@ import Alt from 'alt'; export let alt = new Alt(); export let altThirdParty = new Alt(); -export let altUser = new Alt(); export let altWhitelabel = new Alt(); diff --git a/js/stores/user_store.js b/js/stores/user_store.js index fe96eaa8..4c6725e3 100644 --- a/js/stores/user_store.js +++ b/js/stores/user_store.js @@ -1,6 +1,6 @@ 'use strict'; -import { alt, altWhitelabel, altUser, altThirdParty } from '../alt'; +import { alt, altThirdParty } from '../alt'; import EventActions from '../actions/event_actions'; @@ -56,9 +56,8 @@ class UserStore { EventActions.userDidLogout(); // Reset all stores back to their initial state + // Don't recycle the whitelabel stores since they're not dependent on login alt.recycle(); - altWhitelabel.recycle(); - altUser.recycle(); altThirdParty.recycle(); // Since we've just logged out, we can set this store's @@ -77,4 +76,4 @@ class UserStore { } } -export default altUser.createStore(UserStore, 'UserStore'); +export default alt.createStore(UserStore, 'UserStore');