Skip to content

Commit 006b7a6

Browse files
committed
but we still don't want to collect more than once
1 parent 2038057 commit 006b7a6

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/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ export function listenForWebVitalReportEvents(
213213
function _runCollectorCallbackOnce(event: WebVitalReportEvent) {
214214
if (!collected && pageloadSpanId) {
215215
collectorCallback(event, pageloadSpanId);
216-
collected = true;
217216
}
217+
collected = true;
218218
}
219219

220220
onHidden(() => {

0 commit comments

Comments
 (0)