We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99e61ec commit 3059836Copy full SHA for 3059836
Assets/Thirdweb/Core/Scripts/ThirdwebSession.cs
@@ -112,7 +112,14 @@ internal async Task<string> Connect(WalletConnection walletConnection)
112
113
internal async Task Disconnect()
114
{
115
- await ActiveWallet.Disconnect();
+ if (ActiveWallet != null)
116
+ {
117
+ await ActiveWallet.Disconnect();
118
+ }
119
+ else
120
121
+ Debug.LogWarning("No active wallet detected, unable to disconnect.");
122
123
ThirdwebManager.Instance.SDK.session = new ThirdwebSession(Options, ChainId, RPC);
124
}
125
0 commit comments