aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/lib/contract-namer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/lib/contract-namer.js b/ui/lib/contract-namer.js
index 0800ee7df..2400fa576 100644
--- a/ui/lib/contract-namer.js
+++ b/ui/lib/contract-namer.js
@@ -11,7 +11,7 @@ const ethUtil = require('ethereumjs-util')
module.exports = function (addr, identities = {}) {
const checksummed = ethUtil.toChecksumAddress(addr)
- if (checksummed in contractMap && 'name' in contractMap[checksummed]) {
+ if (contractMap.checksummed && contractMap[checksummed].name) {
return contractMap[checksummed].name
}