From 4ab48a9fbe5f54e5a5cfcf15f02511b6c6de561c Mon Sep 17 00:00:00 2001 From: Edward Gou Date: Fri, 3 Oct 2025 16:32:55 -0400 Subject: [PATCH] display no value on missing vital --- .../webVitals/components/tables/pagePerformanceTable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/app/views/insights/browser/webVitals/components/tables/pagePerformanceTable.tsx b/static/app/views/insights/browser/webVitals/components/tables/pagePerformanceTable.tsx index 7536056da72001..7e7e8107ae6d23 100644 --- a/static/app/views/insights/browser/webVitals/components/tables/pagePerformanceTable.tsx +++ b/static/app/views/insights/browser/webVitals/components/tables/pagePerformanceTable.tsx @@ -242,7 +242,7 @@ export function PagePerformanceTable() { const countWebVitalKey = `${func}(${args.join(', ')})`; // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message const countWebVital = row[countWebVitalKey]; - if (measurement === undefined || countWebVital === 0) { + if (measurement === undefined || !countWebVital) { return ( {' \u2014 '} @@ -255,7 +255,7 @@ export function PagePerformanceTable() { const countWebVitalKey = 'count_scores(measurements.score.cls)'; // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message const countWebVital = row[countWebVitalKey]; - if (countWebVital === 0) { + if (!countWebVital) { return ( {' \u2014 '}