From f8a81d80f892b77624646baf4a1aec2e809ece89 Mon Sep 17 00:00:00 2001 From: Evan Gray Date: Sun, 17 Oct 2021 11:35:08 -0400 Subject: [PATCH] bridge_ui: display correct chain on migration page Change-Id: I0eb440026526e92f4864a0ea943233d3ec13f9e6 --- bridge_ui/src/components/Migration/EvmQuickMigrate.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge_ui/src/components/Migration/EvmQuickMigrate.tsx b/bridge_ui/src/components/Migration/EvmQuickMigrate.tsx index 8d7554b1..8c0d95dd 100644 --- a/bridge_ui/src/components/Migration/EvmQuickMigrate.tsx +++ b/bridge_ui/src/components/Migration/EvmQuickMigrate.tsx @@ -18,7 +18,7 @@ import { useEthereumProvider } from "../../contexts/EthereumProviderContext"; import useEthereumMigratorInformation from "../../hooks/useEthereumMigratorInformation"; import useIsWalletReady from "../../hooks/useIsWalletReady"; import { COLORS } from "../../muiTheme"; -import { CHAINS, getMigrationAssetMap } from "../../utils/consts"; +import { CHAINS_BY_ID, getMigrationAssetMap } from "../../utils/consts"; import ButtonWithLoader from "../ButtonWithLoader"; import EthereumSignerKey from "../EthereumSignerKey"; import ShowTx from "../ShowTx"; @@ -332,7 +332,7 @@ export default function EvmQuickMigrate({ chainId }: { chainId: ChainId }) { }, [isReady, signer, signerAddress, eligibleTokens, migrationMap]); const hasEligibleAssets = migrators && migrators.length > 0; - const chainName = CHAINS[chainId]?.name; + const chainName = CHAINS_BY_ID[chainId]?.name; const content = (