1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

use object.values to get array for iteration (#13300)

This commit is contained in:
Brad Decker 2022-01-13 12:10:47 -06:00 committed by GitHub
parent 5d7094cafc
commit dffad6e35d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ export default class MetaMetricsController {
// a timeout can be specified that will cause an abandoned event to be // a timeout can be specified that will cause an abandoned event to be
// tracked if the event isn't progressed within that amount of time. // tracked if the event isn't progressed within that amount of time.
setInterval(() => { setInterval(() => {
this.store.getState().fragments.forEach((fragment) => { Object.values(this.store.getState().fragments).forEach((fragment) => {
if ( if (
fragment.timeout && fragment.timeout &&
Date.now() - fragment.lastUpdated / 1000 > fragment.timeout Date.now() - fragment.lastUpdated / 1000 > fragment.timeout