diff --git a/.eslintrc.json b/.eslintrc.json index b439f16d..cd640525 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -20,7 +20,19 @@ "plugin:prettier/recommended" ], "parser": "@typescript-eslint/parser", - "plugins": ["@typescript-eslint"] + "plugins": ["@typescript-eslint"], + "rules": { + "@typescript-eslint/ban-types": [ + "error", + { + "types": { + // un-ban a type that's banned by default + "{}": false + }, + "extendDefaults": true + } + ] + } } ], "root": true diff --git a/src/hooks/useChains.ts b/src/hooks/useChains.ts index f5a9d186..f15eba6a 100644 --- a/src/hooks/useChains.ts +++ b/src/hooks/useChains.ts @@ -31,6 +31,7 @@ export function useChains(args: UseChainsQueryArgs = {}) { .map((chain): Chain => { return { ...chain, + chainName: chainIdToName[chain.chainID], prettyName: chainIdToPrettyName[chain.chainID] || chain.chainName, registryChainName: chainIdToName[chain.chainID], };