Skip to content

Commit

Permalink
rename some variables
Browse files Browse the repository at this point in the history
  • Loading branch information
RamRamez committed Aug 6, 2023
1 parent d845948 commit 1a4cf85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/modals/SwitchNetwork.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { ETheme } from '@/features/general/general.slice';
import { networksParams } from '@/helpers/blockchain';

const networksConfig = config.NETWORKS_CONFIG;
const _networks = Object.keys(networksConfig).map(Number);
const defaultNetworkIds = Object.keys(networksConfig).map(Number);

interface ISwitchNetworkModal extends IModal {
desc?: string;
Expand All @@ -37,7 +37,7 @@ const SwitchNetwork: FC<ISwitchNetworkModal> = ({
const { chainId } = useWeb3React();
const { formatMessage } = useIntl();
const theme = useAppSelector(state => state.general.theme);
const networks = customNetworks || _networks;
const networkIds = customNetworks || defaultNetworkIds;

return (
<Modal
Expand All @@ -49,7 +49,7 @@ const SwitchNetwork: FC<ISwitchNetworkModal> = ({
>
<Wrapper>
{desc && <P>{desc}</P>}
{networks.map(networkId => (
{networkIds.map(networkId => (
<NetworkItem
onClick={() => {
switchNetwork(networkId);
Expand Down

0 comments on commit 1a4cf85

Please sign in to comment.