diff --git a/src/analytics/metrics/types.ts b/src/analytics/metrics/types.ts index ae1217df85..113bef9137 100644 --- a/src/analytics/metrics/types.ts +++ b/src/analytics/metrics/types.ts @@ -521,6 +521,7 @@ export type Events = { | 'InterstitialProfile' | 'Profile' | 'Onboarding' + recId?: number | string } 'suggestedUser:dismiss': { logContext: 'InterstitialDiscover' | 'InterstitialProfile' diff --git a/src/components/FeedInterstitials.tsx b/src/components/FeedInterstitials.tsx index 1a64d01bbf..af73d904b7 100644 --- a/src/components/FeedInterstitials.tsx +++ b/src/components/FeedInterstitials.tsx @@ -215,13 +215,14 @@ export function SuggestedFollows({feed}: {feed: FeedDescriptor}) { } export function SuggestedFollowsProfile({did}: {did: string}) { - const {profiles, onDismiss, isLoading, error} = + const {profiles, recId, onDismiss, isLoading, error} = useSuggestedFollowsByActorWithDismiss({did}) return ( {({hovered}) => ( diff --git a/src/state/queries/suggested-follows.ts b/src/state/queries/suggested-follows.ts index 4bb44f2400..c1ec4a12a7 100644 --- a/src/state/queries/suggested-follows.ts +++ b/src/state/queries/suggested-follows.ts @@ -92,6 +92,7 @@ export function useSuggestedFollowsByActorWithDismiss({ return { profiles, + recId: data?.recId, onDismiss, isLoading, error,