From d24b5b76fdd02c47942cbc20b471718bd7bda91d Mon Sep 17 00:00:00 2001 From: bitpshr Date: Mon, 16 Jul 2018 09:05:08 -0400 Subject: Update variable name --- app/scripts/lib/resolver.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/scripts/lib') 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) => { -- cgit v1.2.3