Skip to content

Commit

Permalink
fix: optional chaining for client
Browse files Browse the repository at this point in the history
  • Loading branch information
talha-trili committed Oct 24, 2024
1 parent 3cefec9 commit d0c130c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebGLFrontend/src/WalletProviders/Kukai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class KukaiWallet extends BaseWallet implements Wallet {
accountInfo: null
};

await this.client.logout();
await this.client?.logout();
localStorage.removeItem("networkName");
this.CallUnityOnAccountDisconnected(accountInfo);
}
Expand Down

0 comments on commit d0c130c

Please sign in to comment.