From 910760023e3f51ca63d627e545981bbb79e27cd0 Mon Sep 17 00:00:00 2001 From: Alfreedom <00tango.bromine@icloud.com> Date: Mon, 6 May 2024 17:25:23 +0200 Subject: [PATCH] fix issue 123 --- example/lib/home_page.dart | 4 ++-- lib/services/w3m_service/w3m_service.dart | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/example/lib/home_page.dart b/example/lib/home_page.dart index bad8b513..8016f725 100644 --- a/example/lib/home_page.dart +++ b/example/lib/home_page.dart @@ -61,8 +61,8 @@ class _MyHomePageState extends State { universal: 'https://web3modal.com', ), ), - enableAnalytics: true, // Optional - null by default - enableEmail: true, // Optional - false by default + // enableAnalytics: true, // OPTIONAL - null by default + // enableEmail: true, // OPTIONAL - false by default // requiredNamespaces: {}, // optionalNamespaces: {}, // excludedWalletIds: { diff --git a/lib/services/w3m_service/w3m_service.dart b/lib/services/w3m_service/w3m_service.dart index e1b99746..c32a1234 100644 --- a/lib/services/w3m_service/w3m_service.dart +++ b/lib/services/w3m_service/w3m_service.dart @@ -134,18 +134,18 @@ class W3MService with ChangeNotifier, CoinbaseService implements IW3MService { } } - loggerService.instance = LoggerService( - level: logLevel, - projectId: projectId ?? _web3App.core.projectId, - debugMode: kDebugMode, - ); - _web3App = web3App ?? Web3App( core: Core(projectId: projectId!), metadata: metadata!, ); - _projectId = projectId ?? _web3App.core.projectId; + _projectId = _web3App.core.projectId; + + loggerService.instance = LoggerService( + level: logLevel, + projectId: _projectId, + debugMode: kDebugMode, + ); _setRequiredNamespaces(requiredNamespaces); _setOptionalNamespaces(optionalNamespaces);