Add default values for preferences (#8584)

Defaults have been added for all three preferences. The default values
added are both falsey, so this shouldn't result in any functional
change. This was done to help make this preferences more easily
discoverable.
feature/default_network_editable
Mark Stacey 5 years ago committed by GitHub
parent 7a4eece92d
commit de02eeefbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/scripts/controllers/preferences.js
  2. 3
      ui/app/ducks/metamask/metamask.js

@ -52,6 +52,8 @@ export default class PreferencesController {
lostIdentities: {},
forgottenPassword: false,
preferences: {
autoLockTimeLimit: undefined,
showFiatInTestnets: false,
useNativeCurrencyAsPrimaryCurrency: true,
},
completedOnboarding: false,

@ -39,8 +39,9 @@ export default function reduceMetamask (state = {}, action) {
welcomeScreenSeen: false,
currentLocale: '',
preferences: {
useNativeCurrencyAsPrimaryCurrency: true,
autoLockTimeLimit: undefined,
showFiatInTestnets: false,
useNativeCurrencyAsPrimaryCurrency: true,
},
firstTimeFlowType: null,
completedOnboarding: false,

Loading…
Cancel
Save