From eb0ebbac414778aa3a67e80cf296d39469873db6 Mon Sep 17 00:00:00 2001 From: OmarHatem Date: Thu, 15 Dec 2022 02:05:00 +0200 Subject: [PATCH] Validate bitcoin's saved transaction priority [skip ci] --- lib/entities/default_settings_migration.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/entities/default_settings_migration.dart b/lib/entities/default_settings_migration.dart index 42b49c2ec..83012b39a 100644 --- a/lib/entities/default_settings_migration.dart +++ b/lib/entities/default_settings_migration.dart @@ -161,7 +161,8 @@ Future defaultSettingsMigration( } Future validateBitcoinSavedTransactionPriority(SharedPreferences sharedPreferences) async { - int? savedBitcoinPriority = sharedPreferences.getInt(PreferencesKey.bitcoinTransactionPriority); + final int? savedBitcoinPriority = + sharedPreferences.getInt(PreferencesKey.bitcoinTransactionPriority); if (!BitcoinTransactionPriority.all.any((element) => element.raw == savedBitcoinPriority)) { await sharedPreferences.setInt( PreferencesKey.bitcoinTransactionPriority, BitcoinTransactionPriority.defaultPriority.raw);