Skip to content

Commit

Permalink
Revert "fix: only request for permission if not available (#167)"
Browse files Browse the repository at this point in the history
This reverts commit b43cefd.
  • Loading branch information
bhaskarSingh committed Feb 17, 2021
1 parent 330c5a9 commit 5c99d9e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/utils/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ export const connectToBeacon = async walletContext => {
globalWallet = walletContext;
}

if (
await globalWallet.client.getActiveAccount({
network: {
type: network,
},
})
) {
// Check if we already have an account connected, so we can skip requestPermissions.
return globalWallet;
}
// if (
// await globalWallet.client.getActiveAccount({
// network: {
// type: network,
// },
// })
// ) {
// // Check if we already have an account connected, so we can skip requestPermissions.
// return globalWallet;
// }

// Send permission request to the connected wallet. This will either be the browser extension, or a wallet over the P2P network.
await globalWallet.requestPermissions({
Expand Down

0 comments on commit 5c99d9e

Please sign in to comment.