1
0
Fork 0
forked from srxl/akkoma-fe

#450 - dispatch login after saved state is loaded

This commit is contained in:
dave 2019-03-22 14:04:22 -04:00
parent 66e60572bc
commit 31d09931c8

View file

@ -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")