diff options
author | kumavis <aaron@kumavis.me> | 2018-03-29 14:11:41 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2018-03-29 14:11:41 +0800 |
commit | ac4cb3444df5753da6e10f607466e232afa538a2 (patch) | |
tree | 10c692884a7c7a870fe39693e1c088c21cb56047 /ui | |
parent | 86c7c6746d64e8c9a32010520d49fc34c5e2edba (diff) | |
download | tangerine-wallet-browser-ac4cb3444df5753da6e10f607466e232afa538a2.tar.gz tangerine-wallet-browser-ac4cb3444df5753da6e10f607466e232afa538a2.tar.zst tangerine-wallet-browser-ac4cb3444df5753da6e10f607466e232afa538a2.zip |
ui - add guard against unset locale
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/settings.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/settings.js b/ui/app/settings.js index 8764dcafe..171264ed4 100644 --- a/ui/app/settings.js +++ b/ui/app/settings.js @@ -108,11 +108,12 @@ class Settings extends Component { renderCurrentLocale () { const { updateCurrentLocale, currentLocale } = this.props const currentLocaleMeta = locales.find(locale => locale.code === currentLocale) + const currentLocaleName = currentLocaleMeta ? currentLocaleMeta.name || '' return h('div.settings__content-row', [ h('div.settings__content-item', [ h('span', 'Current Language'), - h('span.settings__content-description', `${currentLocaleMeta.name}`), + h('span.settings__content-description', `${currentLocaleName}`), ]), h('div.settings__content-item', [ h('div.settings__content-item-col', [ |