- Make getters to ease attribute access

- Add the old 'disable_fiat' translation
- rename getters to be more bool like names
This commit is contained in:
OmarHatem
2022-12-07 22:07:32 +02:00
parent 37ca795756
commit 55b37164dc
25 changed files with 51 additions and 56 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ abstract class SettingsStoreBase with Store {
sharedPreferences.getBool(PreferencesKey.shouldSaveRecipientAddressKey) ?? false;
final currentFiatApiMode = FiatApiMode.deserialize(
raw: sharedPreferences
.getInt(PreferencesKey.currentFiatApiModeKey)!);
.getInt(PreferencesKey.currentFiatApiModeKey) ?? FiatApiMode.enabled.raw);
final allowBiometricalAuthentication = sharedPreferences
.getBool(PreferencesKey.allowBiometricalAuthenticationKey) ??
false;