Comparing version 0.0.10 to 0.0.11
@@ -12,8 +12,6 @@ import { useState, useEffect } from 'react'; | ||
if (provider && domain && !data) { | ||
if (chainId) { | ||
if (contractAddress || chainId === 1) { | ||
getENS(provider, contractAddress)(domain, fetchOptions).then((data) => { | ||
set(data); | ||
}); | ||
} | ||
if (chainId === 1 || contractAddress) { | ||
getENS(provider, contractAddress)(domain, fetchOptions).then((data) => { | ||
set(data); | ||
}); | ||
} | ||
@@ -20,0 +18,0 @@ else { |
{ | ||
"name": "use-ens", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "A React hook to fetch ENS records from a domain.", | ||
@@ -5,0 +5,0 @@ "files": [ |
3189
42