diff --git a/apps/remix-ide/src/app/providers/injected-provider.tsx b/apps/remix-ide/src/app/providers/injected-provider.tsx index 0f26bfc513..c1ac29256e 100644 --- a/apps/remix-ide/src/app/providers/injected-provider.tsx +++ b/apps/remix-ide/src/app/providers/injected-provider.tsx @@ -105,7 +105,7 @@ export abstract class InjectedProvider extends Plugin implements IProvider { resolve({jsonrpc: '2.0', error: 'no return data provided', id: data.id}) } } catch (error) { - if (error.data.originalError && error.data.originalError.data) { + if (error.data && error.data.originalError && error.data.originalError.data) { resolve({ jsonrpc: '2.0', error: error.data.originalError.message,