From a067a476f69bbd23ddc09e97fe714caf50915b3f Mon Sep 17 00:00:00 2001 From: David Newell Date: Tue, 23 Jan 2024 15:07:56 +0000 Subject: [PATCH] fix: recording viewed event accuracy (#19928) --- .../session-recordings/player/sessionRecordingDataLogic.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.ts b/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.ts index bdefb4501648c..9888a3e06713f 100644 --- a/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.ts +++ b/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.ts @@ -295,13 +295,14 @@ export const sessionRecordingDataLogic = kea([ duration: Math.round(performance.now() - cache.snapshotsStartTime), } - actions.reportViewed() actions.reportUsageIfFullyLoaded() const nextSourceToLoad = sources?.find((s) => !s.loaded) if (nextSourceToLoad) { actions.loadRecordingSnapshots(nextSourceToLoad) + } else { + actions.reportViewed() } }, loadEventsSuccess: () => {