Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
add async await on some calls
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstevens19 committed May 24, 2021
1 parent 2f9344d commit 8e320c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/services/wallet-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function login() {
}
}

export function logout() {
export async function logout() {
window.funwallet.sdk.auth.logout();
isAuthenticated$.next(false);
}
Expand Down

0 comments on commit 8e320c6

Please sign in to comment.