File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
plugins/nft-checkout-plugin/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -398,13 +398,13 @@ export class Web3AuthNoModal extends SafeEventEmitter<Web3AuthNoModalEvents> imp
398398 private connectToPlugins ( data : { adapter : WALLET_ADAPTER_TYPE } ) {
399399 Object . values ( this . plugins ) . map ( async ( plugin ) => {
400400 try {
401- if ( ! plugin . SUPPORTED_ADAPTERS . includes ( data . adapter ) ) {
401+ if ( ! plugin . SUPPORTED_ADAPTERS . includes ( "all" ) && ! plugin . SUPPORTED_ADAPTERS . includes ( data . adapter ) ) {
402402 return ;
403403 }
404404 if ( plugin . status === PLUGIN_STATUS . CONNECTED ) return ;
405405 const { authInstance } = this . walletAdapters [ this . connectedAdapterName ] as AuthAdapter ;
406406 const { options, sessionId, sessionNamespace } = authInstance || { } ;
407- await plugin . initWithWeb3Auth ( this , options . whiteLabel ) ;
407+ await plugin . initWithWeb3Auth ( this , options ? .whiteLabel ) ;
408408 await plugin . connect ( { sessionId, sessionNamespace } ) ;
409409 } catch ( error : unknown ) {
410410 // swallow error if connector adapter doesn't supports this plugin.
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export class NFTCheckoutPlugin extends SafeEventEmitter implements IPlugin {
1818
1919 status : PLUGIN_STATUS_TYPE = PLUGIN_STATUS . DISCONNECTED ;
2020
21- SUPPORTED_ADAPTERS = [ ] as string [ ] ; // all adapters are supported
21+ SUPPORTED_ADAPTERS = [ "all" ] ;
2222
2323 pluginNamespace = PLUGIN_NAMESPACES . EIP155 ;
2424
You can’t perform that action at this time.
0 commit comments