Skip to content

Commit

Permalink
refactor rename
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Aug 26, 2024
1 parent 8994561 commit 77c911b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -117,7 +117,7 @@ export function filterInspectorListItems({
isNavigationEvent(item) ||
isNetworkError(item) ||
isSlowNetwork(item) ||
isMobileEvent(item) ||
isPostHogMobileEvent(item) ||
isPageviewOrScreen(item) ||
isAutocapture(item))
const isAllErrors =
Expand Down

0 comments on commit 77c911b

Please sign in to comment.