wrapp failed to send feed interactions inside isNetworkError
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user