Skip to content

Commit

Permalink
devop: return null on error
Browse files Browse the repository at this point in the history
  • Loading branch information
kvhnuke committed Oct 24, 2022
1 parent 05bc342 commit 2f8cafc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/extension/src/libs/name-resolver/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ class GenericNameResolver {
async resolveName(name: string, coins: CoinType[]): Promise<string | null> {
let response: string | null = null;
for (const coin of coins) {
response = await this.nameResolver.resolveAddress(name, coin);
response = await this.nameResolver
.resolveAddress(name, coin)
.catch(() => null);
if (response) return response;
}
return response;
Expand Down

1 comment on commit 2f8cafc

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.