Skip to content

Commit

Permalink
fixes no modal constructor params
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1995 committed Dec 17, 2024
1 parent d8dc214 commit 3c24e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/no-modal/src/noModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class Web3AuthNoModal extends SafeEventEmitter<Web3AuthNoModalEvents> imp
if (!options.clientId) throw WalletInitializationError.invalidParams("Please provide a valid clientId in constructor");
if (options.enableLogging) log.enableAll();
else log.setLevel("error");
if (!options.privateKeyProvider && !options.chainConfig) {
if (!options.privateKeyProvider || !options.chainConfig) {
throw WalletInitializationError.invalidParams("Please provide chainConfig or privateKeyProvider");
}
options.chainConfig = options.chainConfig || options.privateKeyProvider.currentChainConfig;
Expand Down

0 comments on commit 3c24e85

Please sign in to comment.