Skip to content

Commit

Permalink
feat(neuron-ui): ignore connection error in neuron-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Jul 27, 2019
1 parent 476a918 commit 9f5593c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/neuron-ui/src/containers/Main/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ export const useSyncChainData = ({ chainURL, dispatch }: { chainURL: string; dis
})
}
})
.catch(console.error)
.catch((err: Error) => {
if (process.env.NODE_ENV === 'development') {
console.warn(err)
}
})
}
clearInterval(timer)
if (chainURL) {
Expand Down

0 comments on commit 9f5593c

Please sign in to comment.