@rango-dev/widget-embedded 0.27.4-next.1 → 0.27.4-next.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.27.4-next.1",
3
+ "version": "0.27.4-next.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -25,7 +25,7 @@
25
25
  "@lingui/core": "4.2.1",
26
26
  "@lingui/react": "4.2.1",
27
27
  "@rango-dev/logging-core": "^0.2.1-next.1",
28
- "@rango-dev/provider-all": "^0.32.2-next.2",
28
+ "@rango-dev/provider-all": "^0.32.2-next.3",
29
29
  "@rango-dev/queue-manager-core": "^0.26.0",
30
30
  "@rango-dev/queue-manager-rango-preset": "^0.32.1-next.0",
31
31
  "@rango-dev/queue-manager-react": "^0.26.0",
@@ -82,7 +82,7 @@ export function useWalletList(params: Params) {
82
82
  const atLeastOneWalletIsConnected = !!wallets.find(
83
83
  (w) => w.state === WalletState.CONNECTED
84
84
  );
85
- if (!config?.multiWallets && atLeastOneWalletIsConnected) {
85
+ if (config?.multiWallets === false && atLeastOneWalletIsConnected) {
86
86
  return;
87
87
  }
88
88
  onBeforeConnect?.(type);
@@ -427,8 +427,8 @@ export function areTokensEqual(
427
427
  ) {
428
428
  return (
429
429
  tokenA?.blockchain === tokenB?.blockchain &&
430
- tokenA?.symbol === tokenB?.symbol &&
431
- tokenA?.address === tokenB?.address
430
+ tokenA?.symbol.toLowerCase() === tokenB?.symbol.toLowerCase() &&
431
+ tokenA?.address?.toLowerCase() === tokenB?.address?.toLowerCase()
432
432
  );
433
433
  }
434
434