Merge pull request #8882 from internet-development/binaryfiddler/isnetwork

wrapp failed to send feed interactions inside isNetworkError
This commit is contained in:
jim
2025-08-22 16:10:53 -07:00
committed by GitHub
+4 -1
View File
@@ -11,6 +11,7 @@ import {type AppBskyFeedDefs} from '@atproto/api'
import throttle from 'lodash.throttle' import throttle from 'lodash.throttle'
import {FEEDBACK_FEEDS, STAGING_FEEDS} from '#/lib/constants' import {FEEDBACK_FEEDS, STAGING_FEEDS} from '#/lib/constants'
import {isNetworkError} from '#/lib/hooks/useCleanError'
import {logEvent} from '#/lib/statsig/statsig' import {logEvent} from '#/lib/statsig/statsig'
import {Logger} from '#/logger' import {Logger} from '#/logger'
import { import {
@@ -83,7 +84,9 @@ export function useFeedFeedback(
}, },
) )
.catch((e: any) => { .catch((e: any) => {
logger.warn('Failed to send feed interactions', {error: e}) if (!isNetworkError(e)) {
logger.warn('Failed to send feed interactions', {error: e})
}
}) })
// Send to Statsig // Send to Statsig