From 276d56b669df5153ed5a9656b4fdf2e606211516 Mon Sep 17 00:00:00 2001 From: Hung Doan <19758667+hungdoansy@users.noreply.github.com> Date: Tue, 20 Jun 2023 09:52:33 +0700 Subject: [PATCH] refactor: hide zkSync Era on Elastic analytics (#348) --- src/components/NetworkModal/index.js | 4 ++-- src/constants/networks.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/NetworkModal/index.js b/src/components/NetworkModal/index.js index 17f47b8bd..01d5eff88 100644 --- a/src/components/NetworkModal/index.js +++ b/src/components/NetworkModal/index.js @@ -9,7 +9,7 @@ import { useOnClickOutside } from '../../hooks' import { useNetworksInfo } from '../../contexts/NetworkInfo' import { Link, useHistory, useParams } from 'react-router-dom' import Kyber from '../Icons/Kyber' -import { ChainId, NETWORKS_INFO_LIST } from '../../constants/networks' +import { ChainId, NOT_SUPPORT_ELASTIC_NETWORKS, NETWORKS_INFO_LIST } from '../../constants/networks' const ModalContentWrapper = styled.div` display: flex; @@ -184,7 +184,7 @@ export default function NetworkModal() { ) } else { - if (network.chainId === ChainId.AURORA) return undefined + if (NOT_SUPPORT_ELASTIC_NETWORKS.includes(network.chainId)) return undefined return (