mirror of
https://github.com/stronk-dev/RandomChad.git
synced 2025-07-05 10:35:08 +02:00
Catch web2 browsers
This commit is contained in:
parent
49d91af410
commit
9d0ff0bf76
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user