Skip to content

Commit

Permalink
Merge pull request #9222 from google/enhancement/9071-fix-slow-naviga…
Browse files Browse the repository at this point in the history
…tion

Enhancement/9071 Improve CTA Click Navigation Speed
  • Loading branch information
eugene-manuilov authored Aug 22, 2024
2 parents ab0fa97 + a06d253 commit 79c607f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ export default function ActionsCTALinkDismiss( {
event.preventDefault();
}

navigateTo( ctaLink );

await Promise.all( [
trackEvents.confirm(),
dismissNotification( id, { expiresInSeconds: dismissExpires } ),
] );

navigateTo( ctaLink );
};

return (
Expand Down

0 comments on commit 79c607f

Please sign in to comment.