From 77c911bc5d57edb78722c5ad63cc89d0a3f912ef Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Mon, 26 Aug 2024 17:29:04 +0100 Subject: [PATCH] refactor rename --- .../player/inspector/inspectorListFiltering.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/scenes/session-recordings/player/inspector/inspectorListFiltering.ts b/frontend/src/scenes/session-recordings/player/inspector/inspectorListFiltering.ts index 36eae3a70d764..fe262dbef0ad1 100644 --- a/frontend/src/scenes/session-recordings/player/inspector/inspectorListFiltering.ts +++ b/frontend/src/scenes/session-recordings/player/inspector/inspectorListFiltering.ts @@ -21,12 +21,12 @@ const PostHogMobileEvents = [ 'Application Became Active', ] -function isMobileEvent(item: InspectorListItem): boolean { +function isPostHogMobileEvent(item: InspectorListItem): boolean { return isEvent(item) && PostHogMobileEvents.includes(item.data.event) } function isPostHogEvent(item: InspectorListItem): boolean { - return (isEvent(item) && item.data.event.startsWith('$')) || isMobileEvent(item) + return (isEvent(item) && item.data.event.startsWith('$')) || isPostHogMobileEvent(item) } function isNetworkEvent(item: InspectorListItem): item is InspectorListItemPerformance { @@ -117,7 +117,7 @@ export function filterInspectorListItems({ isNavigationEvent(item) || isNetworkError(item) || isSlowNetwork(item) || - isMobileEvent(item) || + isPostHogMobileEvent(item) || isPageviewOrScreen(item) || isAutocapture(item)) const isAllErrors =