From af33fc9beb91080a715b636d0e595434ae2ac540 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 2 Apr 2020 13:59:54 +0000 Subject: [PATCH] --- ayanova/src/api/authutil.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {