From d80e8bceb7adef9e643b49480a643803cec9dea8 Mon Sep 17 00:00:00 2001 From: Griko Nibras Date: Sat, 13 Jan 2024 00:43:35 +0700 Subject: [PATCH 1/2] chore: update eslint config Signed-off-by: Griko Nibras --- .eslintrc.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 From 6a6b69c79fde1bc93e5113addd30dbc1497f441e Mon Sep 17 00:00:00 2001 From: Griko Nibras Date: Sat, 13 Jan 2024 05:00:39 +0700 Subject: [PATCH 2/2] fix: normalize chain names from registry [FRE-518] Signed-off-by: Griko Nibras --- src/hooks/useChains.ts | 1 + 1 file changed, 1 insertion(+) 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], };