mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Create distinct labels and names for addresses.
This commit is contained in:
parent
1ca6fff317
commit
d270cbc9d2
@ -5,7 +5,9 @@ const extend = require('xtend')
|
||||
class PreferencesController {
|
||||
|
||||
constructor (opts = {}) {
|
||||
const initState = extend({ frequentRpcList: [] }, opts.initState)
|
||||
const initState = extend({
|
||||
frequentRpcList: [],
|
||||
}, opts.initState)
|
||||
this.store = new ObservableStore(initState)
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,11 @@ EnsInput.prototype.render = function () {
|
||||
},
|
||||
[
|
||||
Object.keys(props.identities).map((key) => {
|
||||
return h('option', props.identities[key].address)
|
||||
let identity = props.identities[key]
|
||||
return h('option', {
|
||||
value: identity.address,
|
||||
label: identity.name,
|
||||
})
|
||||
}),
|
||||
]),
|
||||
this.ensIcon(),
|
||||
|
Loading…
Reference in New Issue
Block a user