Skip to content

Commit 2ec6738

Browse files
committed
Fix linting
1 parent 49c2bf7 commit 2ec6738

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export function trackClsAsStandaloneSpan(): void {
8888
function sendStandaloneClsSpan(clsValue: number, entry: LayoutShift | undefined, pageloadSpanId: string) {
8989
DEBUG_BUILD && logger.log(`Sending CLS span (${clsValue})`);
9090

91-
const startTime = msToSec((browserPerformanceTimeOrigin() || 0) + (entry?.startTime || 0));
91+
const startTime = msToSec((browserPerformanceTimeOrigin() || 0) + ((entry && entry.startTime) || 0));
9292
const routeName = getCurrentScope().getScopeData().transactionName;
9393

9494
const name = entry ? htmlTreeAsString(entry.sources[0] && entry.sources[0].node) : 'Layout shift';

0 commit comments

Comments
 (0)