1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Don't query for undefined.

This commit is contained in:
Dan 2018-03-27 21:35:12 -02:30
parent 4ee48acf56
commit 2053cac691

View File

@ -30,7 +30,9 @@ async function startApp (metamaskState, accountManager, opts) {
// parse opts
if (!metamaskState.featureFlags) metamaskState.featureFlags = {}
const currentLocaleMessages = await fetchLocale(metamaskState.currentLocale)
const currentLocaleMessages = metamaskState.currentLocale
? await fetchLocale(metamaskState.currentLocale)
: {}
const enLocaleMessages = await fetchLocale('en')
const store = configureStore({