@web3auth/modal 10.0.6 → 10.0.7

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  var noModal = require('@web3auth/no-modal');
4
4
 
5
- const version = "10.0.6";
5
+ const version = "10.0.7";
6
6
  const defaultConnectorsModalConfig = {
7
7
  hideWalletDiscovery: false,
8
8
  connectors: {
@@ -338,9 +338,8 @@ class Web3Auth extends noModal.Web3AuthNoModal {
338
338
  hasExternalConnectors
339
339
  } = await this.checkConnectorAvailability(filteredConnectorNames);
340
340
  const filteredConnectors = connectors.filter(x => filteredConnectorNames.includes(x.name));
341
- if (hasInAppConnectors) {
342
- await this.initInAppAndCachedConnectors(filteredConnectors);
343
- }
341
+ // initialize in-app and cached connector (if there are only external connectors enabled)
342
+ await this.initInAppAndCachedConnectors(filteredConnectors);
344
343
  if (hasExternalConnectors) {
345
344
  if (hasInAppConnectors) {
346
345
  // show connect button if both in-app and external wallets are available
@@ -1,6 +1,6 @@
1
1
  import { EVM_CONNECTORS } from '@web3auth/no-modal';
2
2
 
3
- const version = "10.0.6";
3
+ const version = "10.0.7";
4
4
  const defaultConnectorsModalConfig = {
5
5
  hideWalletDiscovery: false,
6
6
  connectors: {
@@ -351,9 +351,9 @@ class Web3Auth extends Web3AuthNoModal {
351
351
  hasExternalConnectors
352
352
  } = await this.checkConnectorAvailability(filteredConnectorNames);
353
353
  const filteredConnectors = connectors.filter(x => filteredConnectorNames.includes(x.name));
354
- if (hasInAppConnectors) {
355
- await this.initInAppAndCachedConnectors(filteredConnectors);
356
- }
354
+
355
+ // initialize in-app and cached connector (if there are only external connectors enabled)
356
+ await this.initInAppAndCachedConnectors(filteredConnectors);
357
357
  if (hasExternalConnectors) {
358
358
  if (hasInAppConnectors) {
359
359
  // show connect button if both in-app and external wallets are available