Skip to content

Commit 5a834c8

Browse files
Merge pull request #2243 from Web3Auth/fix/chain-namespace-config
fixes multichain namespace config for injected connectors
2 parents c120f3a + d05fad3 commit 5a834c8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/modal/src/modalManager.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
CONNECTOR_NAMES,
1414
CONNECTOR_NAMESPACES,
1515
CONNECTOR_STATUS,
16+
CONNECTOR_STATUS_TYPE,
1617
fetchProjectConfig,
1718
fetchWalletRegistry,
1819
getErrorAnalyticsProperties,
@@ -563,7 +564,11 @@ export class Web3Auth extends Web3AuthNoModal implements IWeb3AuthModal {
563564
}
564565

565566
// update connector config
566-
if (([CONNECTOR_STATUS.NOT_READY, CONNECTOR_STATUS.READY, CONNECTOR_STATUS.CONNECTING] as string[]).includes(connector.status)) {
567+
if (
568+
(
569+
[CONNECTOR_STATUS.NOT_READY, CONNECTOR_STATUS.READY, CONNECTOR_STATUS.CONNECTING, CONNECTOR_STATUS.CONNECTED] as CONNECTOR_STATUS_TYPE[]
570+
).includes(connector.status)
571+
) {
567572
const connectorModalConfig = this.modalConfig.connectors[connectorName];
568573
connectorsConfig[connectorName] = {
569574
...connectorModalConfig,

0 commit comments

Comments
 (0)