mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-13 03:24:09 +00:00
Throw error when web3 provider returns no accounts
This commit is contained in:
parent
6e52f0fddd
commit
5523383781
@ -79,7 +79,7 @@ export const getProviderInfo: Function = async (): Promise<ProviderProps> => {
|
||||
try {
|
||||
const accounts = await web3Provider.enable()
|
||||
if (!accounts) {
|
||||
console.error('Empty web3 provider')
|
||||
throw new Error()
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error when enabling web3 provider', error)
|
||||
|
Loading…
x
Reference in New Issue
Block a user