Skip to content

Commit

Permalink
fix: Remove Array.find from Store.jsx (#306)
Browse files Browse the repository at this point in the history
* Remove Array.find from Store.jsx

Array.find() is not supported by IE11: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find

* Update Store.jsx

Fix lint error

* Fix linting issues
  • Loading branch information
taurheim authored Oct 8, 2020
1 parent a3d2c91 commit dba44b0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Store/Store.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,9 @@ const Store = class Store {
}

isMasterSpinnerFinished() {
// console.log('MASTER SPINNER SUBSCRIPTIONS', this.masterSpinnerSubscriptions);
return !Object.keys(this.masterSpinnerSubscriptions).find(
return Object.keys(this.masterSpinnerSubscriptions).filter(
src => this.masterSpinnerSubscriptions[src].complete !== true,
);
).length === 0;
}
};

Expand Down

0 comments on commit dba44b0

Please sign in to comment.