@getpara/evm-wallet-connectors 2.0.0-alpha.53 → 2.0.0-alpha.54

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.
@@ -135,12 +135,15 @@ function EvmExternalWalletProvider({
135
135
  }
136
136
  }, [isLocalConnecting, isConnecting, isReconnecting, connectedWallet, wagmiSwitchAccount]);
137
137
  useEffect(() => {
138
- if (!isLocalConnecting && !isConnecting && !isReconnecting && !isConnected && !connectedConnector) {
139
- if (Object.values(para.wallets).length === 0) {
140
- return;
138
+ const connectPara = () => __async(this, null, function* () {
139
+ if (!isLocalConnecting && !isConnecting && !isReconnecting && !isConnected && !connectedConnector) {
140
+ if (Object.values(para.wallets).length === 0 || !(yield para.isFullyLoggedIn())) {
141
+ return;
142
+ }
143
+ connectParaEmbedded();
141
144
  }
142
- connectParaEmbedded();
143
- }
145
+ });
146
+ connectPara();
144
147
  }, [isLocalConnecting, isConnecting, isReconnecting, isConnected, connectedConnector]);
145
148
  const reset = () => __async(this, null, function* () {
146
149
  yield disconnectAsync();
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@getpara/evm-wallet-connectors",
3
- "version": "2.0.0-alpha.53",
3
+ "version": "2.0.0-alpha.54",
4
4
  "dependencies": {
5
5
  "@coinbase/wallet-sdk": "4.3.0",
6
- "@getpara/wagmi-v2-connector": "2.0.0-alpha.53",
7
- "@getpara/web-sdk": "2.0.0-alpha.53",
6
+ "@getpara/wagmi-v2-connector": "2.0.0-alpha.54",
7
+ "@getpara/web-sdk": "2.0.0-alpha.54",
8
8
  "zustand": "^4.5.2",
9
9
  "zustand-sync-tabs": "^0.2.2"
10
10
  },
11
11
  "devDependencies": {
12
- "@getpara/react-common": "2.0.0-alpha.53",
12
+ "@getpara/react-common": "2.0.0-alpha.54",
13
13
  "@tanstack/react-query": "^5.74.0",
14
14
  "@types/react": "^18.0.31",
15
15
  "@types/react-dom": "^18.2.7",
@@ -25,7 +25,7 @@
25
25
  "dist",
26
26
  "package.json"
27
27
  ],
28
- "gitHead": "ad18fa268a41b0e4c080fa8349553fb546983513",
28
+ "gitHead": "680049700f7b36b7ef407cab0fbfadad8c069d74",
29
29
  "main": "dist/index.js",
30
30
  "peerDependencies": {
31
31
  "@farcaster/miniapp-wagmi-connector": "^1.0.0",