Skip to content

Commit

Permalink
fix cleanup loop over pending LoAFs (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Jun 10, 2024
1 parent 21c16dd commit ecec823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attribution/onINP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ const cleanupEntries = () => {
});
for (let i = 0; i < MAX_PREVIOUS_FRAMES; i++) {
// Look at pending LoAF in reverse order so the most recent are first.
const loaf = pendingLoAFs[pendingLoAFs.length - 1];
const loaf = pendingLoAFs[pendingLoAFs.length - 1 - i];

// If we reach LoAFs that overlap with event processing,
// we can assume all previous ones have already been handled.
Expand Down

0 comments on commit ecec823

Please sign in to comment.