Add await to login action'
This commit is contained in:
parent
987b5162a7
commit
2d05aef24b
2 changed files with 1 additions and 4 deletions
|
@ -60,9 +60,6 @@ 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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue