This commit is contained in:
Henry Jameson 2019-06-13 10:05:22 +03:00
parent dba8d8910c
commit 0988065f50

View File

@ -246,7 +246,7 @@ const setConfig = async ({ store }) => {
const checkOAuthToken = async ({ store }) => { const checkOAuthToken = async ({ store }) => {
return new Promise(async (resolve, reject) => { return new Promise(async (resolve, reject) => {
if (store.state.oauth.userToken) { if (store.getters.getUserToken()) {
try { try {
await store.dispatch('loginUser', store.getters.getUserToken()) await store.dispatch('loginUser', store.getters.getUserToken())
} catch (e) { } catch (e) {