Skip to content
Snippets Groups Projects
Commit 31d09931 authored by Dave LiPuma's avatar Dave LiPuma
Browse files

#450 - dispatch login after saved state is loaded

parent 66e60572
No related branches found
No related tags found
2 merge requests!1028`master` refresh with `develop`,!701#450 - dispatch login after saved state is loaded
......@@ -60,6 +60,9 @@ export default function createPersistedState ({
merge({}, store.state, savedState)
)
}
if (store.state.oauth.token) {
store.dispatch('loginUser', store.state.oauth.token)
}
loaded = true
} catch (e) {
console.log("Couldn't load state")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment