wrapp failed to send feed interactions inside isNetworkError

This commit is contained in:
Chenyu Huang
2025-08-22 13:28:32 -07:00
parent 912ab1bd9b
commit 184df9cbfe
+4 -1
View File
@@ -11,6 +11,7 @@ import {type AppBskyFeedDefs} from '@atproto/api'
import throttle from 'lodash.throttle'
import {FEEDBACK_FEEDS, STAGING_FEEDS} from '#/lib/constants'
import {isNetworkError} from '#/lib/hooks/useCleanError'
import {logEvent} from '#/lib/statsig/statsig'
import {Logger} from '#/logger'
import {
@@ -83,7 +84,9 @@ export function useFeedFeedback(
},
)
.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