Skip to content

Commit 7e60a46

Browse files
author
Marco Pereirinha
committed
Fix lint
1 parent 6855b99 commit 7e60a46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/send-to-analytics.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function sendToAnalytics( { name, value, delta, id, attribution, rating }
6767
case 'INP':
6868
const { processingDuration, presentationDelay, interactionTarget, interactionType } = attribution;
6969
const loaf = attribution.longAnimationFrameEntries.at( -1 );
70-
const script = loaf?.scripts?.sort( ( a, b ) => b.duration - a.duration )[0];
70+
const script = loaf?.scripts?.sort( ( a, b ) => b.duration - a.duration )[ 0 ];
7171

7272
eventParams.processingDuration = processingDuration;
7373
eventParams.presentationDelay = presentationDelay;

0 commit comments

Comments
 (0)