diff --git a/packages/meteor-wallet-app/src/lib/meteor-wallet-app.ts b/packages/meteor-wallet-app/src/lib/meteor-wallet-app.ts index 339200be2..ff0db919d 100644 --- a/packages/meteor-wallet-app/src/lib/meteor-wallet-app.ts +++ b/packages/meteor-wallet-app/src/lib/meteor-wallet-app.ts @@ -100,14 +100,14 @@ const createMeteorWalletAppInjected: WalletBehaviourFactory< contractId?: string; } > = async ({ metadata }) => { - let signedInAccounts: Array = [] + let signedInAccounts: Array = []; return { getContractId() { return metadata.contractId; }, async getAccounts() { - return signedInAccounts + return signedInAccounts; }, async signAndSendTransaction(params) { promiseId++; @@ -146,12 +146,12 @@ const createMeteorWalletAppInjected: WalletBehaviourFactory< promiseId, }); - signedInAccounts = data - + signedInAccounts = data; + return data; }, async signOut() { - if(signedInAccounts.length > 0){ + if (signedInAccounts.length > 0) { promiseId++; await tryPostOrFail>({ @@ -160,7 +160,7 @@ const createMeteorWalletAppInjected: WalletBehaviourFactory< promiseId, }); - signedInAccounts = [] + signedInAccounts = []; } }, async verifyOwner() {