From ee6b8767d694cc67c3a9d2a3da574ea9e689ce00 Mon Sep 17 00:00:00 2001 From: OleksandrSobol Date: Wed, 2 Jun 2021 20:09:39 +0300 Subject: [PATCH] CAKE-306 | fixed settings_store.dart and di.dart --- lib/di.dart | 6 +++--- lib/store/settings_store.dart | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/di.dart b/lib/di.dart index 58523c474..b5bb7bfd3 100644 --- a/lib/di.dart +++ b/lib/di.dart @@ -155,7 +155,7 @@ Future setup( (secrets.wyreApiKey?.isNotEmpty ?? false) && (secrets.wyreAccountId?.isNotEmpty ?? false); - var isMoonPayEnabled = false; + /*var isMoonPayEnabled = false; try { final locale = await Devicelocale.currentLocale; final deviceCountryCode = locale.split('_').last; @@ -163,11 +163,11 @@ Future setup( } catch (e) { isMoonPayEnabled = false; print(e.toString()); - } + }*/ final settingsStore = await SettingsStoreBase.load( nodeSource: _nodeSource, isBitcoinBuyEnabled: isBitcoinBuyEnabled, - isMoonPayEnabled: isMoonPayEnabled); + isMoonPayEnabled: true); if (_isSetupFinished) { return; diff --git a/lib/store/settings_store.dart b/lib/store/settings_store.dart index be71b9f2c..207a731c9 100644 --- a/lib/store/settings_store.dart +++ b/lib/store/settings_store.dart @@ -253,7 +253,7 @@ abstract class SettingsStoreBase with Store { (secrets.wyreApiKey?.isNotEmpty ?? false) && (secrets.wyreAccountId?.isNotEmpty ?? false); - var isMoonPayEnabled = false; + /*var isMoonPayEnabled = false; try { final locale = await Devicelocale.currentLocale; final deviceCountryCode = locale.split('_').last; @@ -261,12 +261,12 @@ abstract class SettingsStoreBase with Store { } catch (e) { isMoonPayEnabled = false; print(e.toString()); - } + }*/ final settings = await SettingsStoreBase.load( nodeSource: nodeSource, isBitcoinBuyEnabled: isBitcoinBuyEnabled, - isMoonPayEnabled: isMoonPayEnabled, + isMoonPayEnabled: true, initialBalanceDisplayMode: initialBalanceDisplayMode, initialFiatCurrency: initialFiatCurrency, initialMoneroTransactionPriority: initialMoneroTransactionPriority,