#392: clean up notification stopping section

This commit is contained in:
dave 2019-03-01 11:59:50 -05:00
parent bbe1821be7
commit f3f9fbe302
2 changed files with 7 additions and 3 deletions

View file

@ -290,9 +290,7 @@ 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.dispatch('stopFetchingNotifications')
store.commit('resetStatuses')
},
loginUser (store, accessToken) {