Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Fixes infinite error when result is null #4172

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions modules/preloader/injected/EthereumProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@
var result = data.message;

// get the id which matches the returned id
if (
typeof result === 'object' &&
result.forEach &&
isFinite(result.length)
) {
if (Array.isArray(result)) {
result.forEach(function(load) {
if (_this.responseCallbacks[load.id]) id = load.id;
});
Expand Down