We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6855b99 commit 7e60a46Copy full SHA for 7e60a46
js/src/send-to-analytics.js
@@ -67,7 +67,7 @@ export function sendToAnalytics( { name, value, delta, id, attribution, rating }
67
case 'INP':
68
const { processingDuration, presentationDelay, interactionTarget, interactionType } = attribution;
69
const loaf = attribution.longAnimationFrameEntries.at( -1 );
70
- const script = loaf?.scripts?.sort( ( a, b ) => b.duration - a.duration )[0];
+ const script = loaf?.scripts?.sort( ( a, b ) => b.duration - a.duration )[ 0 ];
71
72
eventParams.processingDuration = processingDuration;
73
eventParams.presentationDelay = presentationDelay;
0 commit comments