diff --git a/src/api/address-resolver/index.ts b/src/api/address-resolver/index.ts index 5997e01..313b7cd 100644 --- a/src/api/address-resolver/index.ts +++ b/src/api/address-resolver/index.ts @@ -45,11 +45,11 @@ const resolvers: Record>> = { export const getResolver = ( chainId: number ): IAddressResolver> => { - const resolver = resolvers[chainId]; - if (resolver === undefined) { - return resolver[0]; // default MAGIC NUMBER + const res = resolvers[chainId]; + if (res === undefined) { + return resolvers[0]; // default MAGIC NUMBER } - return resolver; + return res; }; export const resolverRendererRegistry = new Map<