Skip to content

Commit

Permalink
chore: remove workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzkirstein committed Mar 15, 2024
1 parent 32f7f90 commit 1625516
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/components/@shared/NetworkStatus/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -58,7 +53,7 @@ export default function NetworkStatus({
)
}
},
[appConfig.networkAlertApi]
[appConfig.networkAlertApi, chain]
)

useEffect(() => {
Expand Down

0 comments on commit 1625516

Please sign in to comment.