From 9d0ff0bf76dbe7e80937705e3fba1e80b4e8ca03 Mon Sep 17 00:00:00 2001 From: Mentor Palokaj Date: Sat, 16 Oct 2021 15:14:33 +0200 Subject: [PATCH] Catch web2 browsers --- minter/src/modules/web3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minter/src/modules/web3.js b/minter/src/modules/web3.js index 89b7eab..d6f2b20 100644 --- a/minter/src/modules/web3.js +++ b/minter/src/modules/web3.js @@ -34,7 +34,7 @@ export function useAddress() { // Set initial value if known useEffect( f => { - if( ethereum.selectedAddress ) setAddress( ethereum.selectedAddress ) + if( ethereum && ethereum.selectedAddress ) setAddress( ethereum.selectedAddress ) }, [] ) // Create listener to accounts change