aboutsummaryrefslogtreecommitdiffstats
path: root/ui/index.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-03-28 08:05:12 +0800
committerDan <danjm.com@gmail.com>2018-03-28 08:05:12 +0800
commit2053cac69129a436d20d1392e0361554d7b16959 (patch)
tree74f3a689a849f3f731f3422090244d02f3e44f3d /ui/index.js
parent4ee48acf5672f00d59c49ec68452cd1dd57afa31 (diff)
downloadtangerine-wallet-browser-2053cac69129a436d20d1392e0361554d7b16959.tar
tangerine-wallet-browser-2053cac69129a436d20d1392e0361554d7b16959.tar.gz
tangerine-wallet-browser-2053cac69129a436d20d1392e0361554d7b16959.tar.bz2
tangerine-wallet-browser-2053cac69129a436d20d1392e0361554d7b16959.tar.lz
tangerine-wallet-browser-2053cac69129a436d20d1392e0361554d7b16959.tar.xz
tangerine-wallet-browser-2053cac69129a436d20d1392e0361554d7b16959.tar.zst
tangerine-wallet-browser-2053cac69129a436d20d1392e0361554d7b16959.zip
Don't query for undefined.
Diffstat (limited to 'ui/index.js')
-rw-r--r--ui/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/index.js b/ui/index.js
index fe57f791a..1e0e9f1cc 100644
--- a/ui/index.js
+++ b/ui/index.js
@@ -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({