Catch web2 browsers

This commit is contained in:
Mentor Palokaj 2021-10-16 15:14:33 +02:00
parent 49d91af410
commit 9d0ff0bf76

View File

@ -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