From de02eeefbe867fa1b694c32c4980718f57843b26 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Wed, 13 May 2020 11:53:00 -0300 Subject: [PATCH] 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. --- app/scripts/controllers/preferences.js | 2 ++ ui/app/ducks/metamask/metamask.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/scripts/controllers/preferences.js b/app/scripts/controllers/preferences.js index 0b2f34baa..725d9bb90 100644 --- a/app/scripts/controllers/preferences.js +++ b/app/scripts/controllers/preferences.js @@ -52,6 +52,8 @@ export default class PreferencesController { lostIdentities: {}, forgottenPassword: false, preferences: { + autoLockTimeLimit: undefined, + showFiatInTestnets: false, useNativeCurrencyAsPrimaryCurrency: true, }, completedOnboarding: false, diff --git a/ui/app/ducks/metamask/metamask.js b/ui/app/ducks/metamask/metamask.js index 5e171467e..6879163f2 100644 --- a/ui/app/ducks/metamask/metamask.js +++ b/ui/app/ducks/metamask/metamask.js @@ -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,