mirror of
https://github.com/stronk-dev/RandomChad.git
synced 2026-04-20 16:45:10 +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
|
// Set initial value if known
|
||||||
useEffect( f => {
|
useEffect( f => {
|
||||||
if( ethereum.selectedAddress ) setAddress( ethereum.selectedAddress )
|
if( ethereum && ethereum.selectedAddress ) setAddress( ethereum.selectedAddress )
|
||||||
}, [] )
|
}, [] )
|
||||||
|
|
||||||
// Create listener to accounts change
|
// Create listener to accounts change
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user