1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

ui - settings - fix for currentLocale

This commit is contained in:
kumavis 2018-03-27 18:21:22 -07:00
parent e3881143cb
commit 1a5eccdfc0

View File

@ -107,11 +107,12 @@ class Settings extends Component {
renderCurrentLocale () { renderCurrentLocale () {
const { updateCurrentLocale, currentLocale } = this.props const { updateCurrentLocale, currentLocale } = this.props
const currentLocaleMeta = locales.find(locale => locale.code === currentLocale)
return h('div.settings__content-row', [ return h('div.settings__content-row', [
h('div.settings__content-item', [ h('div.settings__content-item', [
h('span', 'Current Language'), 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', [
h('div.settings__content-item-col', [ h('div.settings__content-item-col', [
@ -452,7 +453,7 @@ Settings.propTypes = {
goHome: PropTypes.func, goHome: PropTypes.func,
isMascara: PropTypes.bool, isMascara: PropTypes.bool,
updateCurrentLocale: PropTypes.func, updateCurrentLocale: PropTypes.func,
currentLocale: PropTypes.object, currentLocale: PropTypes.string,
t: PropTypes.func, t: PropTypes.func,
} }