diff --git a/ayanova/src/api/authutil.js b/ayanova/src/api/authutil.js index 060eefc1..2e536ad1 100644 --- a/ayanova/src/api/authutil.js +++ b/ayanova/src/api/authutil.js @@ -3,7 +3,7 @@ import decode from "jwt-decode"; import initialize from "./initialize"; export function processLogin(response) { - var promise = new Promise(function(resolve, reject) { + return new Promise(function(resolve, reject) { //is token present? if (!response || !response.data || !response.data.token) { window.$gz.store.commit( @@ -49,7 +49,7 @@ export function processLogin(response) { resolve(true); }); }); - return promise; + // return promise; } export function processLogout() {