diff --git a/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.ts b/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.ts index f8741034fb910..14a8819c06173 100644 --- a/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.ts +++ b/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.ts @@ -980,6 +980,10 @@ export const sessionRecordingDataLogic = kea([ const eventStart = meta?.start_time ? dayjs(meta.start_time) : null const snapshotStart = firstSnapshot ? dayjs(firstSnapshot.timestamp) : null + if (snapshotStart && eventStart) { + return snapshotStart + } + return snapshotStart || eventStart }, ], @@ -992,7 +996,7 @@ export const sessionRecordingDataLogic = kea([ // whichever is latest if (eventEnd && snapshotEnd) { - return eventEnd.isAfter(snapshotEnd) ? eventEnd : snapshotEnd + return snapshotEnd } return eventEnd || snapshotEnd },