@@ -70,9 +70,11 @@ function Bridge() {
70 // full reload if the user changes their selected network in Metamask
70 // full reload if the user changes their selected network in Metamask
72 useEffect(() => {
72 useEffect(() => {
73+ if (window.ethereum) {
73− window.ethereum.on('chainChanged', () => {
74+ window.ethereum.on('chainChanged', () => {
74− document.location.reload();
75+ document.location.reload();