CAKE-306 | fixed onEnabled() method in the moonpay_buy_provider.dart

This commit is contained in:
OleksandrSobol
2021-06-07 14:28:53 +03:00
parent ee6b8767d6
commit 6ac8dabf87
3 changed files with 13 additions and 25 deletions
+4 -6
View File
@@ -253,20 +253,18 @@ 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;
isMoonPayEnabled = await MoonPayBuyProvider.onEnabled(deviceCountryCode);
isMoonPayEnabled = await MoonPayBuyProvider.onEnabled();
} catch (e) {
isMoonPayEnabled = false;
print(e.toString());
}*/
}
final settings = await SettingsStoreBase.load(
nodeSource: nodeSource,
isBitcoinBuyEnabled: isBitcoinBuyEnabled,
isMoonPayEnabled: true,
isMoonPayEnabled: isMoonPayEnabled,
initialBalanceDisplayMode: initialBalanceDisplayMode,
initialFiatCurrency: initialFiatCurrency,
initialMoneroTransactionPriority: initialMoneroTransactionPriority,