Skip to content

Commit

Permalink
WT-2035 - dynamic network name (#1332)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrearampin authored Jan 10, 2024
1 parent b8ef34b commit 6f8d49c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import {
Heading,
Logo,
} from '@biom3/react';
import { ChainId, ChainName, WalletProviderName } from '@imtbl/checkout-sdk';
import { ChainId, WalletProviderName } from '@imtbl/checkout-sdk';
import { getChainNameById } from 'lib/chains';
import {
networkButtonStyles,
networkIconStyles,
Expand Down Expand Up @@ -45,8 +46,7 @@ export function WalletNetworkButton({
onWalletClick,
onNetworkClick,
}: WalletNetworkButtonProps) {
// need to support multiple environments/networks
const networkName = ChainId.SEPOLIA === chainId ? ChainName.SEPOLIA : ChainName.IMTBL_ZKEVM_TESTNET;
const networkName = getChainNameById(chainId);
const walletHeading = walletName === WalletProviderName.METAMASK ? 'Metamask' : 'Passport';

return (
Expand Down

0 comments on commit 6f8d49c

Please sign in to comment.