#392: stale data served to new user account

This commit is contained in:
dave 2019-02-28 14:03:44 -05:00
parent 24f3770fb5
commit ba2e05bc63
3 changed files with 18 additions and 4 deletions

View file

@ -290,6 +290,10 @@ const users = {
store.commit('setToken', false)
store.dispatch('stopFetching', 'friends')
store.commit('setBackendInteractor', backendInteractorService())
if (store.rootState.statuses.notifications.fetcherId) {
window.clearInterval(store.rootState.statuses.notifications.fetcherId)
}
store.commit('resetStatuses')
},
loginUser (store, accessToken) {
return new Promise((resolve, reject) => {