diff options
author | kumavis <aaron@kumavis.me> | 2018-03-28 09:21:22 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2018-03-28 09:21:22 +0800 |
commit | 1a5eccdfc0610133a552fbcdc9353f66603af920 (patch) | |
tree | 7b1c971dbb1fe90b2f9a6b64a23c129391e0232c | |
parent | e3881143cb010c47464bf9af01014fe5bb045621 (diff) | |
download | tangerine-wallet-browser-1a5eccdfc0610133a552fbcdc9353f66603af920.tar.gz tangerine-wallet-browser-1a5eccdfc0610133a552fbcdc9353f66603af920.tar.zst tangerine-wallet-browser-1a5eccdfc0610133a552fbcdc9353f66603af920.zip |
ui - settings - fix for currentLocale
-rw-r--r-- | ui/app/settings.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/settings.js b/ui/app/settings.js index e855d6324..8764dcafe 100644 --- a/ui/app/settings.js +++ b/ui/app/settings.js @@ -107,11 +107,12 @@ class Settings extends Component { renderCurrentLocale () { const { updateCurrentLocale, currentLocale } = this.props + const currentLocaleMeta = locales.find(locale => locale.code === currentLocale) return h('div.settings__content-row', [ h('div.settings__content-item', [ h('span', 'Current Language'), - h('span.settings__content-description', `${currentLocale.name}`), + h('span.settings__content-description', `${currentLocaleMeta.name}`), ]), h('div.settings__content-item', [ h('div.settings__content-item-col', [ @@ -452,7 +453,7 @@ Settings.propTypes = { goHome: PropTypes.func, isMascara: PropTypes.bool, updateCurrentLocale: PropTypes.func, - currentLocale: PropTypes.object, + currentLocale: PropTypes.string, t: PropTypes.func, } |