Skip to content

Commit

Permalink
Merge pull request #139 from ensdomains/getSubnames-error-with-ccip-n…
Browse files Browse the repository at this point in the history
…ames

gracefully fail getSubnames
  • Loading branch information
storywithoutend authored May 22, 2023
2 parents fcaaad6 + 6bca829 commit 08cc411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ensjs/src/functions/getSubnames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const largeQuery = async (
})
.finally(debugSubgraphLatency)

const domain = response?.domain
const domain = response?.domain || { subdomains: [], subdomainCount: 0 }
const subdomains = domain.subdomains.map(
({ wrappedDomain, ...subname }: Domain) => {
const decrypted = decryptName(subname.name!)
Expand Down

0 comments on commit 08cc411

Please sign in to comment.