mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
ui - settings - fix for currentLocale
This commit is contained in:
parent
e3881143cb
commit
1a5eccdfc0
@ -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,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user