bridge_ui: display correct chain on migration page

Change-Id: I0eb440026526e92f4864a0ea943233d3ec13f9e6
This commit is contained in:
Evan Gray 2021-10-17 11:35:08 -04:00
parent 1fba2dc58a
commit f8a81d80f8
1 changed files with 2 additions and 2 deletions

View File

@ -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 = (
<div className={classes.containerDiv}>