fix multiple event listeners

pull/3638/head
Aniket-Engg 2 years ago committed by Aniket
parent 03133115dd
commit 3e7dbebefb
  1. 2
      apps/etherscan/src/app/views/VerifyView.tsx

@ -83,7 +83,7 @@ export const VerifyView: React.FC<Props> = ({
onSubmit={(values) => onVerifyContract(values)}
>
{({ errors, touched, handleSubmit, handleChange, isSubmitting }) => {
if (client) {
if (client && client.on) {
client.on("blockchain" as any, 'networkStatus', (result) => {
setNetworkName(result.network.name)
})

Loading…
Cancel
Save