aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-03-10 05:07:38 +0800
committerKevin Serrano <kevgagser@gmail.com>2017-03-10 05:07:38 +0800
commitd270cbc9d2f45b6dae184efbe6c405889ee8cba5 (patch)
treefd502d61b3c7babd650c06a3fe8f4d50e8227346
parent1ca6fff31719c4ff8d155dc9f7c88663a6719046 (diff)
downloadtangerine-wallet-browser-d270cbc9d2f45b6dae184efbe6c405889ee8cba5.tar
tangerine-wallet-browser-d270cbc9d2f45b6dae184efbe6c405889ee8cba5.tar.gz
tangerine-wallet-browser-d270cbc9d2f45b6dae184efbe6c405889ee8cba5.tar.bz2
tangerine-wallet-browser-d270cbc9d2f45b6dae184efbe6c405889ee8cba5.tar.lz
tangerine-wallet-browser-d270cbc9d2f45b6dae184efbe6c405889ee8cba5.tar.xz
tangerine-wallet-browser-d270cbc9d2f45b6dae184efbe6c405889ee8cba5.tar.zst
tangerine-wallet-browser-d270cbc9d2f45b6dae184efbe6c405889ee8cba5.zip
Create distinct labels and names for addresses.
-rw-r--r--app/scripts/controllers/preferences.js4
-rw-r--r--ui/app/components/ens-input.js6
2 files changed, 8 insertions, 2 deletions
diff --git a/app/scripts/controllers/preferences.js b/app/scripts/controllers/preferences.js
index 18fccf11b..c7f675a41 100644
--- a/app/scripts/controllers/preferences.js
+++ b/app/scripts/controllers/preferences.js
@@ -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)
}
diff --git a/ui/app/components/ens-input.js b/ui/app/components/ens-input.js
index 80c8deb22..2b224fa3e 100644
--- a/ui/app/components/ens-input.js
+++ b/ui/app/components/ens-input.js
@@ -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(),