aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-28 09:21:22 +0800
committerkumavis <aaron@kumavis.me>2018-03-28 09:21:22 +0800
commit1a5eccdfc0610133a552fbcdc9353f66603af920 (patch)
tree7b1c971dbb1fe90b2f9a6b64a23c129391e0232c
parente3881143cb010c47464bf9af01014fe5bb045621 (diff)
downloadtangerine-wallet-browser-1a5eccdfc0610133a552fbcdc9353f66603af920.tar
tangerine-wallet-browser-1a5eccdfc0610133a552fbcdc9353f66603af920.tar.gz
tangerine-wallet-browser-1a5eccdfc0610133a552fbcdc9353f66603af920.tar.bz2
tangerine-wallet-browser-1a5eccdfc0610133a552fbcdc9353f66603af920.tar.lz
tangerine-wallet-browser-1a5eccdfc0610133a552fbcdc9353f66603af920.tar.xz
tangerine-wallet-browser-1a5eccdfc0610133a552fbcdc9353f66603af920.tar.zst
tangerine-wallet-browser-1a5eccdfc0610133a552fbcdc9353f66603af920.zip
ui - settings - fix for currentLocale
-rw-r--r--ui/app/settings.js5
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,
}