We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 767ae07 + 4eaec55 commit 74a2179Copy full SHA for 74a2179
1 file changed
Runtime/codebase/SolanaWalletAdapterWebGL/SolanaWalletAdapterWebGL.cs
@@ -130,6 +130,13 @@ private static async Task SetCurrentWallet()
130
await InitWallets();
131
if (_currentWallet == null)
132
{
133
+ // Auto-select when only one wallet adapter is available
134
+ if (Wallets != null && Wallets.Length == 1)
135
+ {
136
+ _currentWallet = Wallets[0];
137
+ return;
138
+ }
139
+
140
if (WalletAdapterUI == null)
141
142
WalletAdapterUI = GameObject.Instantiate(_walletOptions.walletAdapterUIPrefab);
0 commit comments