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

fix wallet init in chrome 7

parent 38176501
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ export const PolkadotExtensionProvider = ( { children } : { children : ReactNode
// enable the wallet
try {
await firstWallet.enable( "Polkadot Tokengated Demo" )
await firstWallet?.enable( "Polkadot Tokengated Demo" )
if ( accounts === undefined || accounts.length === 0 ) {
await firstWallet.subscribeAccounts((allAccounts: WalletAccount[] | undefined) => {
console.log("got accounts via talisman connect", 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