CAKE-306 | fixed settings_store.dart and di.dart

OleksandrSobol committed Jun 2, 2021 at 20:09 UTC ee6b8767d694cc67c3a9d2a3da574ea9e689ce00
2 files changed +6 -6
lib/di.dart
+3 -3
@@ -155,7 +155,7 @@ Future setup(
155 (secrets.wyreApiKey?.isNotEmpty ?? false) &&
156 (secrets.wyreAccountId?.isNotEmpty ?? false);
157
158 - var isMoonPayEnabled = false;
158 + /*var isMoonPayEnabled = false;
159 try {
160 final locale = await Devicelocale.currentLocale;
161 final deviceCountryCode = locale.split('_').last;
@@ -163,11 +163,11 @@ Future setup(
163 } catch (e) {
164 isMoonPayEnabled = false;
165 print(e.toString());
166 - }
166 + }*/
167
168 final settingsStore = await SettingsStoreBase.load(
169 nodeSource: _nodeSource, isBitcoinBuyEnabled: isBitcoinBuyEnabled,
170 - isMoonPayEnabled: isMoonPayEnabled);
170 + isMoonPayEnabled: true);
171
172 if (_isSetupFinished) {
173 return;
lib/store/settings_store.dart
+3 -3
@@ -253,7 +253,7 @@ abstract class SettingsStoreBase with Store {
253 (secrets.wyreApiKey?.isNotEmpty ?? false) &&
254 (secrets.wyreAccountId?.isNotEmpty ?? false);
255
256 - var isMoonPayEnabled = false;
256 + /*var isMoonPayEnabled = false;
257 try {
258 final locale = await Devicelocale.currentLocale;
259 final deviceCountryCode = locale.split('_').last;
@@ -261,12 +261,12 @@ abstract class SettingsStoreBase with Store {
261 } catch (e) {
262 isMoonPayEnabled = false;
263 print(e.toString());
264 - }
264 + }*/
265
266 final settings = await SettingsStoreBase.load(
267 nodeSource: nodeSource,
268 isBitcoinBuyEnabled: isBitcoinBuyEnabled,
269 - isMoonPayEnabled: isMoonPayEnabled,
269 + isMoonPayEnabled: true,
270 initialBalanceDisplayMode: initialBalanceDisplayMode,
271 initialFiatCurrency: initialFiatCurrency,
272 initialMoneroTransactionPriority: initialMoneroTransactionPriority,