diff options
Update variable name
-rw-r--r-- | app/scripts/lib/resolver.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/lib/resolver.js b/app/scripts/lib/resolver.js index cbda0c028..ff0fed161 100644 --- a/app/scripts/lib/resolver.js +++ b/app/scripts/lib/resolver.js @@ -60,8 +60,8 @@ function getRegistrar (type) { module.exports.resolve = function (name, provider) { const path = name.split('.') - const tld = path[path.length - 1] - if (tld === 'eth' || tld === 'test') { + const topLevelDomain = path[path.length - 1] + if (topLevelDomain === 'eth' || topLevelDomain === 'test') { return ens(name, provider) } else { return new Promise((resolve, reject) => { |