From 0f1b17cf95f1867b0a16319a47651c8078a825a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Leo=CC=81n?= Date: Thu, 7 Mar 2024 18:25:36 +0100 Subject: [PATCH] feat(packages/sui-react-web-vitals): rollback to log targets with empty values again --- packages/sui-react-web-vitals/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sui-react-web-vitals/src/index.js b/packages/sui-react-web-vitals/src/index.js index a3b06d28f..e114122dd 100644 --- a/packages/sui-react-web-vitals/src/index.js +++ b/packages/sui-react-web-vitals/src/index.js @@ -102,7 +102,7 @@ export default function WebVitalsReporter({ const isAllowed = allowed.includes(pathname) || allowed.includes(routeid) const target = getTarget({name, attribution}) - if (!isAllowed || !logger?.cwv || rating === RATING.GOOD || !target) return + if (!isAllowed || !logger?.cwv || rating === RATING.GOOD) return const {loadState, eventType} = attribution