Skip to content

Commit 84630a3

Browse files
committed
fix size
1 parent 8008d2b commit 84630a3

File tree

1 file changed

+1
-1
lines changed
  • packages/browser-utils/src/metrics

1 file changed

+1
-1
lines changed

packages/browser-utils/src/metrics/lcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function sendStandaloneLcpSpan(lcpValue: number, entry: LargestContentfulPaint |
119119
// `Timing-Allow-Origin` header.
120120
entry.renderTime != null && (attributes['lcp.renderTime'] = entry.renderTime);
121121

122-
entry.size && (attributes['lcp.size'] = entry.size);
122+
entry.size != null && (attributes['lcp.size'] = entry.size);
123123
}
124124

125125
const span = startStandaloneWebVitalSpan({

0 commit comments

Comments
 (0)