Skip to content
Snippets Groups Projects
Commit 71397581 authored by Niklas P's avatar Niklas P
Browse files

fix wallet init in chrome 8

parent b89671e6
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ export const PolkadotExtensionProvider = ( { children } : { children : ReactNode
// enable the wallet
try {
await firstWallet?.enable( "Polkadot Tokengated Demo" )
await firstWallet.subscribeAccounts((allAccounts: WalletAccount[] | undefined) => {
await firstWallet?.subscribeAccounts((allAccounts: WalletAccount[] | undefined) => {
console.log("got accounts via talisman connect", allAccounts)
if ( accounts === undefined || accounts.length === 0 ) {
setAccounts( allAccounts )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment