Skip to content

Commit dba44b0

Browse files
authored
fix: Remove Array.find from Store.jsx (#306)
* 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
1 parent a3d2c91 commit dba44b0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Store/Store.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,9 @@ const Store = class Store {
8989
}
9090

9191
isMasterSpinnerFinished() {
92-
// console.log('MASTER SPINNER SUBSCRIPTIONS', this.masterSpinnerSubscriptions);
93-
return !Object.keys(this.masterSpinnerSubscriptions).find(
92+
return Object.keys(this.masterSpinnerSubscriptions).filter(
9493
src => this.masterSpinnerSubscriptions[src].complete !== true,
95-
);
94+
).length === 0;
9695
}
9796
};
9897

0 commit comments

Comments
 (0)