aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-29 14:11:41 +0800
committerkumavis <aaron@kumavis.me>2018-03-29 14:11:41 +0800
commitac4cb3444df5753da6e10f607466e232afa538a2 (patch)
tree10c692884a7c7a870fe39693e1c088c21cb56047 /ui
parent86c7c6746d64e8c9a32010520d49fc34c5e2edba (diff)
downloadtangerine-wallet-browser-ac4cb3444df5753da6e10f607466e232afa538a2.tar
tangerine-wallet-browser-ac4cb3444df5753da6e10f607466e232afa538a2.tar.gz
tangerine-wallet-browser-ac4cb3444df5753da6e10f607466e232afa538a2.tar.bz2
tangerine-wallet-browser-ac4cb3444df5753da6e10f607466e232afa538a2.tar.lz
tangerine-wallet-browser-ac4cb3444df5753da6e10f607466e232afa538a2.tar.xz
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.js3
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', [