Skip to content

Commit

Permalink
Fix isConnected method crashing the connector
Browse files Browse the repository at this point in the history
  • Loading branch information
albertbinance committed Apr 27, 2023
1 parent 64b8697 commit 7226b40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"publishConfig": {
"access": "public"
},
"version": "0.0.3",
"version": "0.0.4",
"files": [
"dist/*"
],
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class TrustWallet extends Connector {
provider?: TrustWalletProvider

private get connected() {
return !!this.provider?.isConnected()
return !!this.provider?.isConnected?.()
}

constructor({ actions, onError }: TrustWalletConstructorArgs) {
Expand Down

0 comments on commit 7226b40

Please sign in to comment.