mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-12 23:26:39 +00:00
fix undefined connection
in provider
This commit is contained in:
parent
81c62b1006
commit
e62a5503a9
@ -76,7 +76,7 @@ class Provider {
|
||||
if (this.type === 'rpc') {
|
||||
return !!this.provider;
|
||||
} else if (this.type === 'ws') {
|
||||
return this.provider && this.provider.connection._connection.connected;
|
||||
return this.provider && this.provider.connection._connection && this.provider.connection._connection.connected;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user