Skip to content

Commit

Permalink
Merge pull request #1706 from shuoer86/master
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
chaitanyapotti authored Feb 9, 2024
2 parents f4e12b1 + 9e82e0f commit ed993c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/modal/src/modalManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export class Web3Auth extends Web3AuthNoModal implements IWeb3AuthModal {
return;
}
// in-app wallets or cached wallet (being connected or already connected) are initialized first.
// if adapter is configured thn only initialize in app or cached adapter.
// if adapter is configured then only initialize in app or cached adapter.
// external wallets are initialized on INIT_EXTERNAL_WALLET event.
this.subscribeToAdapterEvents(adapter);
if (adapter.status === ADAPTER_STATUS.NOT_READY) await adapter.init({ autoConnect: this.cachedAdapter === adapterName });
Expand Down
4 changes: 2 additions & 2 deletions packages/no-modal/src/noModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface Web3AuthNoModalOptions {
*/
enableLogging?: boolean;
/**
* setting to "local" will persist social login session accross browser tabs.
* setting to "local" will persist social login session across browser tabs.
*
* @defaultValue "local"
*/
Expand Down Expand Up @@ -129,7 +129,7 @@ export class Web3AuthNoModal extends SafeEventEmitter implements IWeb3Auth {
this.commonJRPCProvider = await CommonJRPCProvider.getProviderInstance({ chainConfig: this.coreOptions.chainConfig as CustomChainConfig });
const initPromises = Object.keys(this.walletAdapters).map((adapterName) => {
this.subscribeToAdapterEvents(this.walletAdapters[adapterName]);
// if adapter doesn't have any chain config yet thn set it based on provided namespace and chainId.
// if adapter doesn't have any chain config yet then set it based on provided namespace and chainId.
// if no chainNamespace or chainId is being provided, it will connect with mainnet.
if (!this.walletAdapters[adapterName].chainConfigProxy) {
const providedChainConfig = this.coreOptions.chainConfig;
Expand Down

0 comments on commit ed993c5

Please sign in to comment.