From 1625516e1c186567e4c548acce364e46f1f8b5a7 Mon Sep 17 00:00:00 2001 From: Moritz Kirstein Date: Fri, 15 Mar 2024 13:42:18 +0100 Subject: [PATCH] chore: remove workaround --- src/components/@shared/NetworkStatus/index.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/@shared/NetworkStatus/index.tsx b/src/components/@shared/NetworkStatus/index.tsx index 2ff554b88..3ae5145cf 100644 --- a/src/components/@shared/NetworkStatus/index.tsx +++ b/src/components/@shared/NetworkStatus/index.tsx @@ -30,12 +30,7 @@ export default function NetworkStatus({ apiEndpoint }) try { - const result = await axios.get(apiEndpoint, { - proxy: { - host: appConfig.networkAlertApi[chainId].split(':8000')[0], - port: 8000 - } - }) + const result = await axios.get(apiEndpoint) const { Nodes } = result.data const { nodes }: { nodes: { [node: string]: number } } = Nodes let minBlock: number @@ -58,7 +53,7 @@ export default function NetworkStatus({ ) } }, - [appConfig.networkAlertApi] + [appConfig.networkAlertApi, chain] ) useEffect(() => {