1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02: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 () {
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,
}