@getpara/solana-wallet-connectors 2.0.0-alpha.59 → 2.0.0-alpha.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -271,8 +271,11 @@ function SolanaExternalWalletProvider({
271
271
  }
272
272
  });
273
273
  const disconnectBase = (providerId) => __async(this, null, function* () {
274
- var _a, _b;
274
+ var _a;
275
275
  const wallet2 = wallets.find((w) => w.id === providerId);
276
+ if (!wallet2) {
277
+ return;
278
+ }
276
279
  const adapter = getAdapter((_a = wallet2.name) != null ? _a : "");
277
280
  if (!(adapter == null ? void 0 : adapter.connected)) {
278
281
  return;
@@ -281,8 +284,9 @@ function SolanaExternalWalletProvider({
281
284
  try {
282
285
  yield adapter.disconnect();
283
286
  } catch (e) {
284
- console.error("Error disconnecting wallet:", e);
285
- throw new Error((_b = e == null ? void 0 : e.message) != null ? _b : e);
287
+ console.error("Error disconnecting Solana wallet:", e);
288
+ } finally {
289
+ isLinkingAccount.current = false;
286
290
  }
287
291
  });
288
292
  const getAdapter = (name) => {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@getpara/solana-wallet-connectors",
3
- "version": "2.0.0-alpha.59",
3
+ "version": "2.0.0-alpha.60",
4
4
  "dependencies": {
5
- "@getpara/react-common": "2.0.0-alpha.59",
6
- "@getpara/web-sdk": "2.0.0-alpha.59",
5
+ "@getpara/react-common": "2.0.0-alpha.60",
6
+ "@getpara/web-sdk": "2.0.0-alpha.60",
7
7
  "bs58": "6.0.0"
8
8
  },
9
9
  "devDependencies": {
@@ -23,7 +23,7 @@
23
23
  "dist",
24
24
  "package.json"
25
25
  ],
26
- "gitHead": "e15908ac8eafff6f3b264fffa43742870b14b275",
26
+ "gitHead": "b445d9dcf909a9bfa72d4f21b825fcf7c643be0c",
27
27
  "main": "dist/index.js",
28
28
  "peerDependencies": {
29
29
  "@farcaster/mini-app-solana": "^1.0.0",