From 8e320c60e9b97d46a18759655b586cf4ca144ee9 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Mon, 24 May 2021 13:33:39 +0100 Subject: [PATCH] add async await on some calls --- src/App.vue | 8 ++++---- src/services/wallet-service.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/App.vue b/src/App.vue index c34d911..a1d143b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -46,11 +46,11 @@ export default { registerEventListeners: function() { registerEventListeners(); }, - login: function() { - login(); + login: async function() { + await login(); }, - logout: function() { - logout(); + logout: async function() { + await logout(); }, }, created: async function() { diff --git a/src/services/wallet-service.js b/src/services/wallet-service.js index ee9d21d..f1154ba 100644 --- a/src/services/wallet-service.js +++ b/src/services/wallet-service.js @@ -78,7 +78,7 @@ export async function login() { } } -export function logout() { +export async function logout() { window.funwallet.sdk.auth.logout(); isAuthenticated$.next(false); }