Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pereirinha committed Jun 6, 2024
1 parent d8d7bd0 commit aad3dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/send-to-analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function sendToAnalytics( { name, value, delta, id, attribution, rating }
case 'INP':
const { processingDuration, presentationDelay, interactionTarget, interactionType } = attribution;
const loaf = attribution.longAnimationFrameEntries.at( -1 );
const script = loaf?.scripts?.sort( ( a, b ) => b.duration - a.duration )[0];
const script = loaf?.scripts?.sort( ( a, b ) => b.duration - a.duration )[ 0 ];

eventParams.processingDuration = processingDuration;
eventParams.presentationDelay = presentationDelay;
Expand Down

0 comments on commit aad3dff

Please sign in to comment.